Skip to content

unsupported value: 'stream' does not support true with this model - gpt-o1-mini via litellm #3455

Description

@bodzebod

Before submitting your bug report

Relevant environment info

- OS: Windows 11
- Continue version: 0.9.246 (pre-release)
- IDE version: vscode 1.96.1
- Model: o1-mini via litellm gateway
- config.json:
  
{
      "model": "o1-mini",
      "title": "o1-mini",
      "apiKey": "XXXX",
      "provider": "openai",
      "apiBase": "https://XXXX",
      "completionOptions": {
        "stream": false
      }
    },

Description

Hi, my company gives me access to o1-mini model through a litellm gateway, providing an openai compatible API.
When I try to set it in continue.dev config, I always get the following error:

400 litellm.BadRequestError: AzureException BadRequestError - Error code: 400 - {'error': {'message': "Unsupported value: 'stream' does not support true with this model. Only the default (false) value is supported.", 'type': 'invalid_request_error', 'param': 'stream', 'code': 'unsupported_value'}} Received Model Group=o1-mini Available Model Group Fallbacks=None

I have set the "stream":false in "completionOptions", as you can see in the config. I feel like this parameter is hardcoded to true in the openai plugin. Please can you check? Thanks.

To reproduce

  1. Configure a litellm gateway to o1-mini
  2. Configure config.json for o1-mini model, and set "stream":false in "completionOptions"
  3. Send a question

Log output

Error handling webview message: {
  "msg": {
    "messageId": "f3df299a-92a8-4fe7-8569-9074034095e8",
    "messageType": "llm/streamChat",
    "data": {
      "messages": [
        {
          "role": "user",
          "content": [
            {
              "type": "text",
              "text": "tell me a joke"
            }
          ]
        },
        {
          "role": "assistant",
          "content": ""
        }
      ],
      "title": "o1-mini",
      "completionOptions": {}
    }
  }
}

Error: 400 litellm.BadRequestError: AzureException BadRequestError - Error code: 400 - {'error': {'message': "Unsupported value: 'stream' does not support true with this model. Only the default (false) value is supported.", 'type': 'invalid_request_error', 'param': 'stream', 'code': 'unsupported_value'}}
Received Model Group=o1-mini
Available Model Group Fallbacks=None

Metadata

Metadata

Assignees

Labels

area:configurationRelates to configuration optionskind:bugIndicates an unexpected problem or unintended behaviorpriority:mediumIndicates medium prioritystale

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions