Remove stop for o1
| @@ -1982,9 +1982,9 @@ async function sendOpenAIRequest(type, messages, signal) { | |||
| 1982 | delete generate_data.presence_penalty; | 1982 | delete generate_data.presence_penalty; |
| 1983 | delete generate_data.tools; | 1983 | delete generate_data.tools; |
| 1984 | delete generate_data.tool_choice; | 1984 | delete generate_data.tool_choice; |
| 1985 | delete generate_data.stop; | ||
| 1985 | // IDK if it supports it and I have no way to test it | 1986 | // IDK if it supports it and I have no way to test it |
| 1986 | // delete generate_data.logit_bias; | 1987 | // delete generate_data.logit_bias; |
| 1987 | // delete generate_data.stop; | ||
| 1988 | } | 1988 | } |
| 1989 | 1989 | ||
| 1990 | await eventSource.emit(event_types.CHAT_COMPLETION_SETTINGS_READY, generate_data); | 1990 | await eventSource.emit(event_types.CHAT_COMPLETION_SETTINGS_READY, generate_data); |
| @@ -2134,7 +2134,6 @@ async function checkFunctionToolCalls(data) { | |||
| 2134 | const args = toolCall.function; | 2134 | const args = toolCall.function; |
| 2135 | console.log('Function tool call:', toolCall); | 2135 | console.log('Function tool call:', toolCall); |
| 2136 | await eventSource.emit(event_types.LLM_FUNCTION_TOOL_CALL, args); | 2136 | await eventSource.emit(event_types.LLM_FUNCTION_TOOL_CALL, args); |
| 2137 | data.allowEmptyResponse = true; | ||
| 2138 | } | 2137 | } |
| 2139 | } | 2138 | } |
| 2140 | 2139 | ||
| @@ -2148,7 +2147,6 @@ async function checkFunctionToolCalls(data) { | |||
| 2148 | /** @type {FunctionToolCall} */ | 2147 | /** @type {FunctionToolCall} */ |
| 2149 | const args = { name: content.name, arguments: JSON.stringify(content.input) }; | 2148 | const args = { name: content.name, arguments: JSON.stringify(content.input) }; |
| 2150 | await eventSource.emit(event_types.LLM_FUNCTION_TOOL_CALL, args); | 2149 | await eventSource.emit(event_types.LLM_FUNCTION_TOOL_CALL, args); |
| 2151 | data.allowEmptyResponse = true; | ||
| 2152 | } | 2150 | } |
| 2153 | } | 2151 | } |
| 2154 | } | 2152 | } |
| @@ -2163,7 +2161,6 @@ async function checkFunctionToolCalls(data) { | |||
| 2163 | const args = { name: toolCall.name, arguments: JSON.stringify(toolCall.parameters) }; | 2161 | const args = { name: toolCall.name, arguments: JSON.stringify(toolCall.parameters) }; |
| 2164 | console.log('Function tool call:', toolCall); | 2162 | console.log('Function tool call:', toolCall); |
| 2165 | await eventSource.emit(event_types.LLM_FUNCTION_TOOL_CALL, args); | 2163 | await eventSource.emit(event_types.LLM_FUNCTION_TOOL_CALL, args); |
| 2166 | data.allowEmptyResponse = true; | ||
| 2167 | } | 2164 | } |
| 2168 | } | 2165 | } |
| 2169 | } | 2166 | } |