@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 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
- request.tools = convertToolsToOpenAIFormat(tools);
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
- input_value: inputValue,
34915
- cursor_pos: cursorPos,
34916
- status_text: statusText,
34917
- is_loading: isLoading,
34918
- streaming_text: streamingText,
34920
+ inputValue,
34921
+ cursorPos,
34922
+ statusText,
34923
+ isLoading,
34924
+ streamingText,
34919
34925
  model: this.props.model,
34920
- show_help: helpMode,
34921
- help_text: helpText,
34922
- search_mode: sessionSelectMode,
34923
- search_query: "",
34924
- search_results: searchResults,
34925
- search_selected: 0,
34926
- scroll_offset: this.state.scrollOffset
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=0DF7A0DEA7CF8E8D64756E2164756E21
36418
+ //# debugId=4856F1AFA237337364756E2164756E21
36413
36419
  //# sourceMappingURL=index.js.map