picoclaw/pkg/providers
Kunal Karmakar 1809d04905
chore(provider): use openai responses api for azure openai endpoints (#2110)
Migrate Azure OpenAI provider from legacy Chat Completions API to the OpenAI Responses API.

- Switch API endpoint from `/openai/deployments/{deployment}/chat/completions` to `/openai/v1/responses`
- Change auth header from `Api-Key` to `Authorization: Bearer`
- Use `responses.ResponseNewParams` SDK types for request construction
- Extract shared Responses API utilities into `openai_responses_common` package
- Deduplicate 178 lines from codex_provider.go by reusing shared package
- Add 593 lines of comprehensive test coverage for the shared package

Closes #2111

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-28 20:50:24 +08:00
..
anthropic fix(anthropic): skip tool calls with empty names to prevent API errors (#1739) 2026-03-18 21:55:01 +08:00
anthropic_messages fix(provider): deduplicate tool results and merge consecutive tool_result blocks for Anthropic API (#1793) 2026-03-23 17:24:46 +08:00
azure chore(provider): use openai responses api for azure openai endpoints (#2110) 2026-03-28 20:50:24 +08:00
bedrock fix weixin config 2026-03-24 01:33:05 +01:00
common Merge pull request #1891 from RussellLuo/audio-transcription 2026-03-23 00:23:30 +01:00
openai_compat feat(providers): add extra_body config to inject custom fields into request body 2026-03-23 16:39:42 +08:00
openai_responses_common chore(provider): use openai responses api for azure openai endpoints (#2110) 2026-03-28 20:50:24 +08:00
protocoltypes
antigravity_provider.go
antigravity_provider_test.go
claude_cli_provider.go
claude_cli_provider_integration_test.go
claude_cli_provider_test.go refactor: seperate security.yml for store keys 2026-03-22 01:55:00 +08:00
claude_provider.go
claude_provider_test.go
codex_cli_credentials.go refactor: centralize environment variable key constants (#1730) 2026-03-18 18:03:24 +08:00
codex_cli_credentials_test.go
codex_cli_provider.go
codex_cli_provider_integration_test.go
codex_cli_provider_test.go
codex_provider.go chore(provider): use openai responses api for azure openai endpoints (#2110) 2026-03-28 20:50:24 +08:00
codex_provider_test.go chore(provider): use openai responses api for azure openai endpoints (#2110) 2026-03-28 20:50:24 +08:00
cooldown.go
cooldown_test.go
error_classifier.go fix(providers): improve context overflow detection and classification 2026-03-26 01:07:56 +07:00
error_classifier_test.go adding test units 2026-03-26 03:03:19 +07:00
factory.go
factory_provider.go Feature/add mimo provider (#1987) 2026-03-25 23:29:44 +08:00
factory_provider_test.go Feature/add mimo provider (#1987) 2026-03-25 23:29:44 +08:00
factory_test.go refactor: seperate security.yml for store keys 2026-03-22 01:55:00 +08:00
fallback.go feat(config): support multiple API keys for failover (#1707) 2026-03-19 00:57:20 +08:00
fallback_multikey_test.go feat(config): support multiple API keys for failover (#1707) 2026-03-19 00:57:20 +08:00
fallback_test.go feat(config): support multiple API keys for failover (#1707) 2026-03-19 00:57:20 +08:00
github_copilot_provider.go
http_provider.go feat(providers): add extra_body config to inject custom fields into request body 2026-03-23 16:39:42 +08:00
legacy_provider.go
model_ref.go feat(provider): add Alibaba Coding Plan and regional Qwen endpoints (#1748) 2026-03-19 22:07:30 +08:00
model_ref_test.go feat(provider): add Alibaba Coding Plan and regional Qwen endpoints (#1748) 2026-03-19 22:07:30 +08:00
tool_call_extract.go
toolcall_utils.go
types.go fix(providers): improve context overflow detection and classification 2026-03-26 01:07:56 +07:00