mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-28 06:06:17 +00:00
When onboarding Microsoft Foundry-hosted DeepSeek-V4 models (Pro/Flash), the onboarding wizard assigned api: 'openai-completions' because usesFoundryResponsesByDefault() only matched GPT/o-series models. These V4 models require the Responses API (openai-responses) to work correctly against the Foundry endpoint. Without this fix, all calls fail with 'provider rejected the request schema or tool payload'. Fix: Add 'deepseek-v4' prefix to usesFoundryResponsesByDefault() so only the verified V4 family defaults to openai-responses. Older DeepSeek families (e.g., V3) remain on openai-completions until proven compatible. Closes: DeepSeek V4 models deployed via Microsoft Foundry onboarding failing immediately due to wrong API adapter. Co-authored-by: Roslin <rmj010203@gmail.com>