Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diff streaming error ("Input should be a valid list") when using GPT-4o #3588

Open
3 tasks done
tomasz-stefaniak opened this issue Jan 2, 2025 · 0 comments
Open
3 tasks done
Assignees
Labels
area:inline-edit Relates to the auto refactor feature ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior "needs-triage" priority:high Indicates high priority

Comments

@tomasz-stefaniak
Copy link
Collaborator

tomasz-stefaniak commented Jan 2, 2025

Before submitting your bug report

Relevant environment info

- OS: MacOS
- Continue version: v0.9.248 (and likely the release version too)
- IDE version: VSCode 1.95.3 (Universal)
- Model: GPT-4o
- config.json:
  
    {
      "title": "GPT-4o",
      "provider": "openai",
      "model": "chatgpt-4o-latest",
      "apiKey": "<my-key>",
    }

Description

A 400 error appears when using GPT-4o with command + I.

Error streaming diff: Error: HTTP 400 Bad Request from https://api.openai.com/v1/completions

{
  "error": {
    "message": "[{'type': 'list_type', 'loc': ('body', 'prompt', 'list[list[dict[str,any]]]'), 'msg': 'Input should be a valid list', 'input': 'The user has requested a section of code in a file to be rewritten.\\n\\nThis is the prefix of the file:"}]
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }
}

To reproduce

  1. Select a piece of code and press cmd + I
  2. Ensure that you are using a local config.json and that GPT-4o is selected
  3. Write a prompt
  4. Submit message
  5. Receive error

Also, please refer to this Discord thread for more info: https://discord.com/channels/1108621136150929458/1318712983676911679/1318712983676911679

@sestinj sestinj self-assigned this Jan 2, 2025
@dosubot dosubot bot added area:inline-edit Relates to the auto refactor feature ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior priority:high Indicates high priority labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:inline-edit Relates to the auto refactor feature ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior "needs-triage" priority:high Indicates high priority
Projects
None yet
Development

No branches or pull requests

3 participants