Restrict function calling to non-streaming only
This commit is contained in:
parent
b833f36c75
commit
f27a83ef73
|
@ -1853,7 +1853,7 @@ async function sendOpenAIRequest(type, messages, signal) {
|
|||
|
||||
await eventSource.emit(event_types.CHAT_COMPLETION_SETTINGS_READY, generate_data);
|
||||
|
||||
if (isFunctionCallingSupported()) {
|
||||
if (isFunctionCallingSupported() && !stream) {
|
||||
await registerFunctionTools(type, generate_data);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue