Spaces:
Paused
Paused
matt HOFFNER
commited on
Commit
·
718acf5
1
Parent(s):
a71aa70
try to not wait
Browse files- src/pages/api/stream.js +1 -3
src/pages/api/stream.js
CHANGED
@@ -108,11 +108,9 @@ export const LLMStream = async (
|
|
108 |
if (choice.finish_reason === "function_call") {
|
109 |
// function call here using func_call
|
110 |
const fn = functions[func_call.name]['googleCustomSearch'];
|
111 |
-
|
112 |
-
console.log(funcResult);
|
113 |
// const serpQueue = encoder.encode(funcResult);
|
114 |
// controller.enqueue(serpQueue);
|
115 |
-
return;
|
116 |
}
|
117 |
|
118 |
if (delta && 'content' in delta) {
|
|
|
108 |
if (choice.finish_reason === "function_call") {
|
109 |
// function call here using func_call
|
110 |
const fn = functions[func_call.name]['googleCustomSearch'];
|
111 |
+
fn(JSON.parse(func_call.arguments));
|
|
|
112 |
// const serpQueue = encoder.encode(funcResult);
|
113 |
// controller.enqueue(serpQueue);
|
|
|
114 |
}
|
115 |
|
116 |
if (delta && 'content' in delta) {
|