You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] "invalid request params" (400) when using Atlas Cloud API with GPT models #803
When configuring Nanocoder to use the Atlas Cloud API (https://api.atlascloud.ai/v1) with GPT models (e.g., gpt-5.6-sol), the client fails with a 400 Bad Request error. The Atlas Cloud API returns {"code":400,"msg":"invalid request params"}.
This indicates that Nanocoder's OpenAI-compatible payload format is sending a parameter that the Atlas Cloud endpoint rejects for these GPT models (possibly related to system prompts, top_p, or tool definitions).
Environment
OS: linux
Node version: (run node --version)
Nanocoder version: 1.28.1
Provider: OpenAI-compatible API (Atlas Cloud)
Model: gpt-5.6-sol
Steps to Reproduce
Configure Nanocoder to use Atlas Cloud as an OpenAI-compatible provider.
Start a session using a GPT model via VS Code or CLI: nanocoder --provider openai-compatible --model gpt-5.6-sol
Enter any prompt and press Enter.
Observe the immediate API rejection.
Expected Behavior
Nanocoder should successfully map the payload to a format that Atlas Cloud accepts for GPT models, allowing the chat completion to proceed normally.
Actual Behavior
The request is rejected by the server with a 400 Bad Request error complaining about invalid request parameters.
Logs/Screenshots
Error: Bad request: URL: https://api.atlascloud.ai/v1/chat/completions
Response body: {"code":400,"msg":"invalid request params"}
Additional Context
I have searched existing issues to ensure this is not a duplicate
I can reproduce this issue consistently
This issue occurs with the latest version of nanocoder
I’m taking this one. I verified the current Atlas Cloud model page identifies this model as openai/gpt-5.6-sol, while the reported configuration uses the unqualified gpt-5.6-sol. I’ll add a narrowly scoped request-boundary normalization for Atlas Cloud’s GPT-5.6 aliases, keep other providers and model IDs unchanged, add regression coverage for the request model, and validate the full suite plus a patch changeset.
Atlas Cloud documents this model as openai/gpt-5.6-sol, while the reported configuration used the shorthand gpt-5.6-sol. The fix normalizes only unqualified GPT-5.6 aliases for the openai-compatible provider when the base URL is api.atlascloud.ai; already-qualified IDs, other Atlas models, and all other providers pass through unchanged.
Added focused regression tests and a patch changeset. Local validation is green: 6,261 tests passed, 1 skipped; type checks, lint, Knip, audit, and changeset validation passed. The PR is ready for review, with GitHub checks currently queued.
Activity
RealBhupesh commentedon Aug 7, 2026
I’m taking this one. I verified the current Atlas Cloud model page identifies this model as
openai/gpt-5.6-sol, while the reported configuration uses the unqualifiedgpt-5.6-sol. I’ll add a narrowly scoped request-boundary normalization for Atlas Cloud’s GPT-5.6 aliases, keep other providers and model IDs unchanged, add regression coverage for the request model, and validate the full suite plus a patch changeset.RealBhupesh commentedon Aug 7, 2026
Implemented in PR #820.
Atlas Cloud documents this model as
openai/gpt-5.6-sol, while the reported configuration used the shorthandgpt-5.6-sol. The fix normalizes only unqualified GPT-5.6 aliases for theopenai-compatibleprovider when the base URL isapi.atlascloud.ai; already-qualified IDs, other Atlas models, and all other providers pass through unchanged.Added focused regression tests and a patch changeset. Local validation is green: 6,261 tests passed, 1 skipped; type checks, lint, Knip, audit, and changeset validation passed. The PR is ready for review, with GitHub checks currently queued.