Skip to content

DeepSeek native API appears incompatible with provider/model model routing #3229

@wduo87391

Description

@wduo87391

Description

When using DeepSeek's official OpenAI-compatible endpoint:

export OPENAI_API_KEY=...
export OPENAI_BASE_URL=https://api.deepseek.com/v1

Claw requires model identifiers in provider/model format:

claw --model openai/deepseek-v4-flash

However DeepSeek's official API expects model names such as:

deepseek-v4-flash
deepseek-v4-pro

and does not appear to accept the prefixed form.

At the same time, attempting to use the native model name directly:

claw --model deepseek-v4-flash

fails client-side with:

[error-kind: invalid_model_syntax]
error: invalid model syntax: 'deepseek-v4-flash'.
Expected provider/model
What was tested

Environment:

export OPENAI_BASE_URL=https://api.deepseek.com/v1
export OPENAI_API_KEY=...

Result:

claw --model deepseek-v4-flash

returns:

invalid model syntax
Expected provider/model

and

claw --model openai/deepseek-v4-flash

does not work against DeepSeek native API.

Additional observations

The same Claw build works correctly with other OpenAI-compatible providers.

For example, using a third-party OpenAI-compatible platform with:

claw --model deepseek-ai/deepseek-v4-flash

successfully reaches the provider and returns provider-side responses.

This suggests the issue may be specific to DeepSeek native API routing/model-name translation rather than the generic OpenAI-compatible implementation.

Question

Should Claw automatically translate:

openai/deepseek-v4-flash

into:

deepseek-v4-flash

when OPENAI_BASE_URL points to DeepSeek's official endpoint?

Or is there currently another supported way to use DeepSeek native models?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions