You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to create a connector to call my self-hosted Ollama model but failed. It shows the MalformedJsonException. Do not know what happened under the hood.
Hi, @ylwu-amzn , I did what you suggested to me but failed. The following parts are the request I send and corresponding (error) response and my connector configuration.
Hope to hear from u asap.
Thanks a lot.
request
POST /_plugins/_ml/models/ge4WipIB5i35lTuUYjdK/_predict
{
"parameters": {
"prompt": "hello"
}
}
response
{
"error": {
"root_cause": [
{
"type": "status_exception",
"reason": "Error from remote service: {\"error\":\"json: cannot unmarshal string into Go struct field GenerateRequest.stream of type bool\"}"
}
],
"type": "status_exception",
"reason": "Error from remote service: {\"error\":\"json: cannot unmarshal string into Go struct field GenerateRequest.stream of type bool\"}"
},
"status": 400
}
Description
I'd like to create a connector to call my self-hosted Ollama model but failed. It shows the MalformedJsonException. Do not know what happened under the hood.
To Reproduce
Steps to reproduce the behavior:
http://10.0.221.10:11434
is my self-hosted endpoint for Ollama service. It works so don't worry about it!Eventually, the model is deployed successfully as I can see the status is
Responding
when clicking Machine Learning button in the sidebar.Error msg:
Opensearch logs:
As we can see, Opensearch received the response from my self-hosted Ollama model service. The problem is the process of parsing json.
Thank you for reading this and helping a dizzy developer.
The text was updated successfully, but these errors were encountered: