waveterm icon indicating copy to clipboard operation
waveterm copied to clipboard

[Bug]: BYOK problem

Open lijiajun1979 opened this issue 2 months ago • 2 comments

Current Behavior

My mistral ai config is { "mistral-ai": { "display:name": "mistral-pixtral", "display:order": 1, "display:icon": "server", "ai:provider": "custom", "ai:apitype": "openai-chat", "ai:model": "pixtral-12b-2409", "ai:endpoint": "https://api.mistral.ai/vi/chat/completions", "ai:apitoken": "mistral", "ai:apitokensecretname": "************************", "ai:capabilities": ["tools", "images", "pdfs"] } } but there is some error

Failed to post message: failed to store message: API type mismatch: expected openai-responses, got openai-chat

how can I fix it?!

Expected Behavior

I need a example of custom ai config

Steps To Reproduce

just config

Wave Version

v0.13

Platform

macOS

OS Version/Distribution

No response

Architecture

arm64

Anything else?

No response

Questionnaire

  • [ ] I'm interested in fixing this myself but don't know where to start
  • [ ] I would like to fix and I have a solution
  • [ ] I don't have time to fix this right now, but maybe later

lijiajun1979 avatar Dec 10 '25 02:12 lijiajun1979

there is some mistake. my platfomr is a linux pc

lijiajun1979 avatar Dec 10 '25 02:12 lijiajun1979

I won't be able to verify until tomorrow, but some quick things to try in the mean time...

There was a typo in the ai:endpoint, should be "v1" not "vi". "https://api.mistral.ai/v1/chat/completions"

Also that error "type mismatch" is likely cause you changed the model mid-chat (you can't mix two api types in the same chat). So try starting a new chat and then see if it works.

sawka avatar Dec 10 '25 06:12 sawka