This commit is contained in:
CHIEFSOFT\ameye
2024-03-03 07:50:54 -05:00
parent c03b833354
commit 88b9c57e0d
3 changed files with 7 additions and 2 deletions
@@ -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"];
+3 -2
View File
@@ -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,
+1
View File
@@ -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}"],