username
This commit is contained in:
@@ -1005,6 +1005,9 @@ long WrenchFamilyList(CVars in, CVars &out){
|
||||
snprintf(vname, sizeof (vname), "task_count_%05d", i);
|
||||
out[vname] = rec["task_count"];
|
||||
|
||||
snprintf(vname, sizeof (vname), "username_%05d", i);
|
||||
out[vname] = rec["username"];
|
||||
|
||||
snprintf(vname, sizeof (vname), "year_%05d", i);
|
||||
out[vname] = rec["year"];
|
||||
|
||||
|
||||
@@ -38,9 +38,10 @@ class WrenchResources extends BaseController
|
||||
$open_ai = new OpenAi($open_ai_key);
|
||||
|
||||
$prompt = " autonomous cars";
|
||||
|
||||
// 'model' => 'text-davinci-003',
|
||||
$complete = $open_ai->completion([
|
||||
'model' => 'text-davinci-003',
|
||||
|
||||
'model' => 'gpt-3.5-turbo-instruct',
|
||||
'prompt' => 'Writing 3 marketing Facebook caption for '. $prompt,
|
||||
'temperature' => 0.9,
|
||||
'max_tokens' => 150,
|
||||
|
||||
@@ -470,6 +470,7 @@ class ResultFormatter extends Model
|
||||
"family_uid" => $out["uid_${key}"],
|
||||
"firstname" => $out["firstname_${key}"],
|
||||
"lastname" => $out["lastname_${key}"],
|
||||
"username" => $out["username_${key}"],
|
||||
"age" => $this->GetFamilyAge( $out["age_${key}"],$out["year_${key}"],$out["month_${key}"]),
|
||||
"year" => $out["year_${key}"],
|
||||
"month" => $out["month_${key}"],
|
||||
|
||||
Reference in New Issue
Block a user