Skip to content

feat(openaicompat): forward parallel_tool_calls, max_completion_tokens, prompt_cache_key#34

Open
ibetitsmike wants to merge 2 commits intocoder_2_33from
mike/openaicompat-additional-options
Open

feat(openaicompat): forward parallel_tool_calls, max_completion_tokens, prompt_cache_key#34
ibetitsmike wants to merge 2 commits intocoder_2_33from
mike/openaicompat-additional-options

Conversation

@ibetitsmike
Copy link
Copy Markdown

Summary

  • Add typed openaicompat provider options for parallel_tool_calls, max_completion_tokens, and prompt_cache_key.
  • Forward the new options into ChatCompletionNewParams when set.
  • Add tests for set and unset behavior.

Motivation

Coder Agents settings need typed parity with native OpenAI Chat Completions controls.

Scope

This PR only adds parallel_tool_calls, max_completion_tokens, and prompt_cache_key. max_tool_calls is excluded because it is Responses-only and is not available on ChatCompletionNewParams.

Tests

  • go test ./providers/openaicompat/...
  • go vet ./providers/openaicompat/...
  • gofmt -l providers/openaicompat

Mux opened this PR on Mike's behalf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant