Remove stop for o1

db2b3569422c934ff0603b071447d0a8da8c2bf4

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -4Showing whitespace changes
public/scripts/openai.js+1 -4
@@ -1982,9 +1982,9 @@ async function sendOpenAIRequest(type, messages, signal) {
19821982 delete generate_data.presence_penalty;
19831983 delete generate_data.tools;
19841984 delete generate_data.tool_choice;
1985+ delete generate_data.stop;
19851986 // IDK if it supports it and I have no way to test it
19861987 // delete generate_data.logit_bias;
1987- // delete generate_data.stop;
19881988 }
19891989
19901990 await eventSource.emit(event_types.CHAT_COMPLETION_SETTINGS_READY, generate_data);
@@ -2134,7 +2134,6 @@ async function checkFunctionToolCalls(data) {
21342134 const args = toolCall.function;
21352135 console.log('Function tool call:', toolCall);
21362136 await eventSource.emit(event_types.LLM_FUNCTION_TOOL_CALL, args);
2137- data.allowEmptyResponse = true;
21382137 }
21392138 }
21402139
@@ -2148,7 +2147,6 @@ async function checkFunctionToolCalls(data) {
21482147 /** @type {FunctionToolCall} */
21492148 const args = { name: content.name, arguments: JSON.stringify(content.input) };
21502149 await eventSource.emit(event_types.LLM_FUNCTION_TOOL_CALL, args);
2151- data.allowEmptyResponse = true;
21522150 }
21532151 }
21542152 }
@@ -2163,7 +2161,6 @@ async function checkFunctionToolCalls(data) {
21632161 const args = { name: toolCall.name, arguments: JSON.stringify(toolCall.parameters) };
21642162 console.log('Function tool call:', toolCall);
21652163 await eventSource.emit(event_types.LLM_FUNCTION_TOOL_CALL, args);
2166- data.allowEmptyResponse = true;
21672164 }
21682165 }
21692166}