You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -89,62 +79,68 @@ private function debug(?string $preset): array {
89
79
'httpResponseStream' => true,
90
80
'httpResponseStreamByLine' => true,
91
81
],
92
-
// ...
93
-
];
94
-
$preset = $preset ?: 'off';
95
-
return$data[$preset] ?? $data['off'];
96
-
}
97
-
98
-
privatefunctionllm(?string$preset): array {
99
-
$data = [
82
+
],
83
+
],
84
+
'llm' => [
85
+
'defaultPreset' => 'deepseek',
86
+
'presets' => [
100
87
'deepseek' => [
101
88
'apiUrl' => 'https://api.deepseek.com',
102
89
'apiKey' => Env::get('DEEPSEEK_API_KEY'),
103
90
'endpoint' => '/chat/completions',
104
91
'defaultModel' => 'deepseek-chat',
105
92
'defaultMaxTokens' => 128,
106
93
'driver' => 'deepseek',
107
-
'httpClientPreset' => 'laravel',
94
+
'httpClientPreset' => 'symfony',
108
95
],
109
-
// ...
110
-
];
111
-
$preset = $preset ?: 'deepseek';
112
-
return$data[$preset] ?? $data['deepseek'];
113
-
}
114
-
115
-
privatefunctionstruct(?string$preset): array {
116
-
return [
117
-
'outputMode' => OutputMode::Tools,
118
-
'useObjectReferences' => true,
119
-
'maxRetries' => 3,
120
-
'retryPrompt' => 'Please try again ...',
121
-
'modePrompts' => [
122
-
OutputMode::MdJson->value => "Response must validate against this JSON Schema:\n<|json_schema|>\n. Respond correctly with strict JSON object within a ```json {} ``` codeblock.\n",
123
-
OutputMode::Json->value => "Response must follow JSON Schema:\n<|json_schema|>\n. Respond correctly with strict JSON object.\n",
124
-
OutputMode::JsonSchema->value => "Response must follow provided JSON Schema. Respond correctly with strict JSON object.\n",
125
-
OutputMode::Tools->value => "Extract correct and accurate data from the input using provided tools.\n",
126
-
],
127
-
'schemaName' => 'user_schema',
128
-
'toolName' => 'user_tool',
129
-
'toolDescription' => 'Tool to extract user information ...',
OutputMode::MdJson->value => "Response must validate against this JSON Schema:\n<|json_schema|>\n. Respond correctly with strict JSON object within a ```json {} ``` codeblock.\n",
117
+
OutputMode::Json->value => "Response must follow JSON Schema:\n<|json_schema|>\n. Respond correctly with strict JSON object.\n",
118
+
OutputMode::JsonSchema->value => "Response must follow provided JSON Schema. Respond correctly with strict JSON object.\n",
119
+
OutputMode::Tools->value => "Extract correct and accurate data from the input using provided tools.\n",
120
+
],
121
+
'schemaName' => 'user_schema',
122
+
'toolName' => 'user_tool',
123
+
'toolDescription' => 'Tool to extract user information ...',
0 commit comments