@ebowwa/coder 0.7.68 → 0.7.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +20 -14
- package/dist/index.js.map +4 -4
- package/dist/interfaces/ui/terminal/cli/bootstrap.js.map +4 -4
- package/dist/interfaces/ui/terminal/cli/index.js +20 -14
- package/dist/interfaces/ui/terminal/native/index.darwin-arm64.node +0 -0
- package/dist/native/index.darwin-arm64.node +0 -0
- package/native/index.darwin-arm64.node +0 -0
- package/package.json +1 -1
- package/packages/src/core/api-client-impl.ts +10 -1
- package/packages/src/interfaces/ui/terminal/cli/interactive/interactive-runner.ts +13 -13
package/dist/index.js
CHANGED
|
@@ -5225,6 +5225,7 @@ async function executeStreamAttempt(request, headers, apiEndpoint, signal, model
|
|
|
5225
5225
|
}
|
|
5226
5226
|
}
|
|
5227
5227
|
if (choice?.finish_reason) {
|
|
5228
|
+
console.log(`[API] OpenAI finish_reason: ${choice.finish_reason}, content blocks: ${currentContent.length}, hasToolUse: ${!!currentToolUseBlock}`);
|
|
5228
5229
|
if (currentTextBlock) {
|
|
5229
5230
|
currentContent.push(currentTextBlock);
|
|
5230
5231
|
currentTextBlock = null;
|
|
@@ -5394,10 +5395,15 @@ async function createMessageStream(messages, options) {
|
|
|
5394
5395
|
}
|
|
5395
5396
|
if (tools && tools.length > 0) {
|
|
5396
5397
|
if (apiFormat === "openai") {
|
|
5397
|
-
|
|
5398
|
+
const openaiTools = convertToolsToOpenAIFormat(tools);
|
|
5399
|
+
request.tools = openaiTools;
|
|
5400
|
+
console.log(`[API] Sending ${tools.length} tools to ${apiFormat} API:`, JSON.stringify(openaiTools).substring(0, 500));
|
|
5398
5401
|
} else {
|
|
5399
5402
|
request.tools = tools;
|
|
5403
|
+
console.log(`[API] Sending ${tools.length} tools to ${apiFormat} API (Anthropic format)`);
|
|
5400
5404
|
}
|
|
5405
|
+
} else {
|
|
5406
|
+
console.log(`[API] No tools being sent to API`);
|
|
5401
5407
|
}
|
|
5402
5408
|
const shouldUseExtendedThinking = (extendedThinking?.enabled ?? false) || thinking && thinking.type !== "disabled";
|
|
5403
5409
|
if (shouldUseExtendedThinking && supportsExtendedThinking(model)) {
|
|
@@ -34911,19 +34917,19 @@ class InteractiveRunner {
|
|
|
34911
34917
|
})) : [];
|
|
34912
34918
|
return {
|
|
34913
34919
|
messages: renderMessages,
|
|
34914
|
-
|
|
34915
|
-
|
|
34916
|
-
|
|
34917
|
-
|
|
34918
|
-
|
|
34920
|
+
inputValue,
|
|
34921
|
+
cursorPos,
|
|
34922
|
+
statusText,
|
|
34923
|
+
isLoading,
|
|
34924
|
+
streamingText,
|
|
34919
34925
|
model: this.props.model,
|
|
34920
|
-
|
|
34921
|
-
|
|
34922
|
-
|
|
34923
|
-
|
|
34924
|
-
|
|
34925
|
-
|
|
34926
|
-
|
|
34926
|
+
showHelp: helpMode,
|
|
34927
|
+
helpText,
|
|
34928
|
+
searchMode: sessionSelectMode,
|
|
34929
|
+
searchQuery: "",
|
|
34930
|
+
searchResults,
|
|
34931
|
+
searchSelected: 0,
|
|
34932
|
+
scrollOffset: this.state.scrollOffset
|
|
34927
34933
|
};
|
|
34928
34934
|
}
|
|
34929
34935
|
_getHelpText(section) {
|
|
@@ -36409,5 +36415,5 @@ export {
|
|
|
36409
36415
|
AnalyzeImageTool
|
|
36410
36416
|
};
|
|
36411
36417
|
|
|
36412
|
-
//# debugId=
|
|
36418
|
+
//# debugId=4856F1AFA237337364756E2164756E21
|
|
36413
36419
|
//# sourceMappingURL=index.js.map
|