Spaces:
Paused
Paused
matt HOFFNER
commited on
Commit
·
a71aa70
1
Parent(s):
15408a7
just log
Browse files- src/pages/api/stream.js +2 -4
src/pages/api/stream.js
CHANGED
@@ -107,13 +107,11 @@ export const LLMStream = async (
|
|
107 |
|
108 |
if (choice.finish_reason === "function_call") {
|
109 |
// function call here using func_call
|
110 |
-
console.log('Function call:', func_call);
|
111 |
const fn = functions[func_call.name]['googleCustomSearch'];
|
112 |
-
console.log(fn);
|
113 |
const funcResult = await fn(JSON.parse(func_call.arguments));
|
114 |
console.log(funcResult);
|
115 |
-
const serpQueue = encoder.encode(funcResult);
|
116 |
-
controller.enqueue(serpQueue);
|
117 |
return;
|
118 |
}
|
119 |
|
|
|
107 |
|
108 |
if (choice.finish_reason === "function_call") {
|
109 |
// function call here using func_call
|
|
|
110 |
const fn = functions[func_call.name]['googleCustomSearch'];
|
|
|
111 |
const funcResult = await fn(JSON.parse(func_call.arguments));
|
112 |
console.log(funcResult);
|
113 |
+
// const serpQueue = encoder.encode(funcResult);
|
114 |
+
// controller.enqueue(serpQueue);
|
115 |
return;
|
116 |
}
|
117 |
|