Elffuss BraidHub

kikocis/continue public

fix: match other fix
Changeset438b2c9c3ac05f5b50b77b8c4e0e412e336969a27aece960a7abc61e498c8844
AuthorNate <sestinj@gmail.com> · 2025-08-21 08:50 -07:00
CommitterNate <sestinj@gmail.com> · 2025-08-21 08:50 -07:00
Parents48bdf6762488

Browse the files at this changeset

1 file changed

modified core/llm/openaiTypeConverters.ts +2 −2
@@ -102,7 +102,7 @@
102102
103103 if (options.tools?.length) {
104104 params.tools = options.tools
105- .filter((tool) => tool.type === "function")
105+ .filter((tool) => !tool.type || tool.type === "function")
106106 .map((tool) => ({
107107 type: tool.type,
108108 function: {
@@ -161,7 +161,7 @@
161161 role: "assistant",
162162 content: "",
163163 toolCalls: message.tool_calls
164- ?.filter((tc) => tc.type === "function")
164+ ?.filter((tc) => !tc.type || tc.type === "function")
165165 .map((tc) => ({
166166 id: tc.id,
167167 type: "function" as const,