continuedev / continuedev/continue

VSCode + Continue : Error: OpenAI GPT-4o mini - 400

Open
#12,776 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:tools ide:vscode kind:bug
Dominant language
TypeScript
Stars
36k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Error Details

Model: OpenAI GPT-4o mini
Provider: openai
Status Code: 400

Error Output

400 Invalid 'messages[11].tool_calls[0].function.name': empty string. Expected a string with minimum length 1, but got an empty string instead.

Additional Context
This happens when I do this:

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named in the report. Reproduce the failure in VSCode with OpenAI GPT-4o mini, then trace Continue's OpenAI provider handling of tool calls and messages. Done means the request no longer contains an empty tool function name and the error is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
ai, api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.