14,985
edits
(Created page with " Troubleshooting of [https://ollama.com/ Ollama] [https://github.com/ollama/ollama/blob/main/docs/api.md API] {{Raise hand | text = If you have any questions about the Ollama API, you can post them on the [https://github.com/ollama/ollama/issues Ollama GitHub Repository].}} == How to fix "json: cannot unmarshal object ..." == '''Error message:''' <pre> HTTP Error 400: {"error": "json: cannot unmarshal object into Go struct field ChatRequest.messages of type []api.Mess...") |
|||
| Line 10: | Line 10: | ||
HTTP Error 400: {"error": "json: cannot unmarshal object into Go struct field ChatRequest.messages of type []api.Message"} | HTTP Error 400: {"error": "json: cannot unmarshal object into Go struct field ChatRequest.messages of type []api.Message"} | ||
</pre> | </pre> | ||
'''Applicable Model:''' | |||
* {{kbd | key=gpt-oss:120b}} | |||
'''Solution''' | '''Solution''' | ||