Spaces:
Running
Running
Update aiEngine.js
Browse files- aiEngine.js +4 -3
aiEngine.js
CHANGED
|
@@ -16,7 +16,7 @@ export const AIEngine = {
|
|
| 16 |
* Uses High-Reasoning Model
|
| 17 |
*/
|
| 18 |
callPM: async (history, input) => {
|
| 19 |
-
const modelId = 'gemini-
|
| 20 |
|
| 21 |
const config = {
|
| 22 |
thinkingConfig: { thinkingLevel: 'HIGH' },
|
|
@@ -49,14 +49,15 @@ export const AIEngine = {
|
|
| 49 |
* Uses Flash Model (Fast) + Image Support
|
| 50 |
*/
|
| 51 |
callWorker: async (history, input, images = []) => {
|
| 52 |
-
const modelId = 'gemini-
|
| 53 |
-
|
| 54 |
const config = {
|
|
|
|
| 55 |
tools: [{ googleSearch: {} }],
|
| 56 |
systemInstruction: {
|
| 57 |
parts: [{ text: prompts.worker_system_prompt }]
|
| 58 |
}
|
| 59 |
};
|
|
|
|
| 60 |
|
| 61 |
const currentParts = [{ text: input }];
|
| 62 |
|
|
|
|
| 16 |
* Uses High-Reasoning Model
|
| 17 |
*/
|
| 18 |
callPM: async (history, input) => {
|
| 19 |
+
const modelId = 'gemini-3.0-pro-preview';
|
| 20 |
|
| 21 |
const config = {
|
| 22 |
thinkingConfig: { thinkingLevel: 'HIGH' },
|
|
|
|
| 49 |
* Uses Flash Model (Fast) + Image Support
|
| 50 |
*/
|
| 51 |
callWorker: async (history, input, images = []) => {
|
| 52 |
+
const modelId = 'gemini-3.0-pro-preview';
|
|
|
|
| 53 |
const config = {
|
| 54 |
+
thinkingConfig: { thinkingLevel: 'HIGH' },
|
| 55 |
tools: [{ googleSearch: {} }],
|
| 56 |
systemInstruction: {
|
| 57 |
parts: [{ text: prompts.worker_system_prompt }]
|
| 58 |
}
|
| 59 |
};
|
| 60 |
+
|
| 61 |
|
| 62 |
const currentParts = [{ text: input }];
|
| 63 |
|