Spaces:
Paused
Paused
matt HOFFNER
commited on
Commit
·
0f9859f
1
Parent(s):
cc5045e
revert
Browse files- src/pages/api/stream.js +5 -5
src/pages/api/stream.js
CHANGED
@@ -107,11 +107,11 @@ export const LLMStream = async (
|
|
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 |
}
|
116 |
|
117 |
if (delta && 'content' in delta) {
|
|
|
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 |
}
|
116 |
|
117 |
if (delta && 'content' in delta) {
|