Skip to content

Message formatting error when using OpenAI compatible server #1248

@Moonlight-YS

Description

@Moonlight-YS

Before submitting your bug report

Relevant environment info

- OS:Windows 11
- Continue:v0.8.26
- IDE:vscode 1.89.0
- Model:gpt-3.5-turbo
- Language environment : Chinese

Description

I'm using a local openai format api service that I built myself, and when using crtl + i and tabauto, I can read this ERROR from the log log:

[warning][index<837,22>] Params body.messages invalid: [Mismatch] -> function isArray() { [native code] }
[error][index<1051,28>] APIException [Error]: Params body.messages invalid

Using the sidebar dialog works fine without any errors

To reproduce

This happens with crtl + i and tabauto

Log output

No errors were found in vscode's developer console

Metadata

Metadata

Assignees

Labels

area:indexingRelates to embedding and indexingide:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions