tmc / langchaingo

LangChain for Go, the easiest way to write LLM-based programs in Go
https://tmc.github.io/langchaingo/
MIT License
3.75k stars 521 forks source link

Mistral example error HTTP Error 422 #863

Open devalexandre opened 1 month ago

devalexandre commented 1 month ago

this erros shown when run example

 (HTTP Error 422) {"object":"error","message":{"detail":[{"type":"extra_forbidden","loc":["body","messages",0,"user","name"],"msg":"Extra inputs are not permitted","input":""},{"type":"extra_forbidden","loc":["body","messages",0,"user","tool_calls"],"msg":"Extra inputs are not permitted","input":null}]},"type":"invalid_request_error","param":null,"code":null}

https://github.com/tmc/langchaingo/blob/main/examples/mistral-completion-example/mistral_completion_example.go

cartman0526 commented 1 month ago

you show add tempature vaule when run

devalexandre commented 1 month ago

you show add tempature vaule when run

I try run the example

https://github.com/tmc/langchaingo/blob/main/examples/mistral-completion-example/mistral_completion_example.go

but not work