Skip to content

[Bug] "invalid request params" (400) when using Atlas Cloud API with GPT models #803

Closed

Description

@akramcodez

Description

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

  1. Configure Nanocoder to use Atlas Cloud as an OpenAI-compatible provider.
  2. Start a session using a GPT model via VS Code or CLI: nanocoder --provider openai-compatible --model gpt-5.6-sol
  3. Enter any prompt and press Enter.
  4. 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"}
Image

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

Activity

  1. added
    bug
    on Aug 6, 2026
  2. RealBhupesh commented on Aug 7, 2026

    @RealBhupesh
    Contributor

    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.

  3. RealBhupesh commented on Aug 7, 2026

    @RealBhupesh
    Contributor

    Implemented in PR #820.

    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.

  4. added
    area:vscode
    on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:vscodebug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions