Spaces:
Sleeping
Sleeping
Update aiEngine.js
Browse files- aiEngine.js +2 -2
aiEngine.js
CHANGED
|
@@ -40,7 +40,7 @@ export const AIEngine = {
|
|
| 40 |
config,
|
| 41 |
contents,
|
| 42 |
});
|
| 43 |
-
return response.text
|
| 44 |
} catch (error) {
|
| 45 |
console.error("PM AI Error:", error);
|
| 46 |
throw error;
|
|
@@ -78,7 +78,7 @@ export const AIEngine = {
|
|
| 78 |
config,
|
| 79 |
contents,
|
| 80 |
});
|
| 81 |
-
return response.text
|
| 82 |
} catch (error) {
|
| 83 |
console.error("Worker AI Error:", error);
|
| 84 |
throw error;
|
|
|
|
| 40 |
config,
|
| 41 |
contents,
|
| 42 |
});
|
| 43 |
+
return response.text; // Simple text return for non-stream internal logic
|
| 44 |
} catch (error) {
|
| 45 |
console.error("PM AI Error:", error);
|
| 46 |
throw error;
|
|
|
|
| 78 |
config,
|
| 79 |
contents,
|
| 80 |
});
|
| 81 |
+
return response.text;
|
| 82 |
} catch (error) {
|
| 83 |
console.error("Worker AI Error:", error);
|
| 84 |
throw error;
|