:robot: The free, Open Source alternative to OpenAI, Claude and others. Self-hosted and local-first. Drop-in replacement for OpenAI, running on consumer-grade hardware. No GPU required. Runs gguf, transformers, diffusers and many more models architectures. Features: Generate Text, Audio, Video, Images, Voice Cloning, Distributed inference
get error
{ "error": { "code": 500, "message": "failed reading parameters from request:json: cannot unmarshal array into Go struct field Message.messages.content of type string", "type": "" } }
LocalAI version:
quay.io/go-skynet/local-ai:v1.40.0-cublas-cuda12-ffmpeg
Environment, CPU architecture, OS, and Version:
Linux c970feda3bb9 5.15.133.1-microsoft-standard-WSL2 #1 SMP Thu Oct 5 21:02:42 UTC 2023 x86_64 GNU/Linux
Describe the bug
curl --location 'http://localhost:7080/v1/chat/completions' \ --header 'Content-Type: application/json' \ --data '{ "model": "llava", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "What is in the image?" }, { "type": "image_url", "image_url": { "url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg" } } ], "temperature": 0.9 } ] }'
{ "error": { "code": 500, "message": "failed reading parameters from request:json: cannot unmarshal array into Go struct field Message.messages.content of type string", "type": "" } }
To Reproduce
above
Expected behavior
should have returned 200 with text
Logs
Additional context