Restrict function calling to non-streaming only

This commit is contained in:
Cohee 2024-05-29 01:11:40 +03:00
parent b833f36c75
commit f27a83ef73
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}