LocalAI
LocalAI copied to clipboard
cannot unmarshal string into Go struct field OpenAIRequest.temperature of type float64" on windows?
If I send this post request on the api endpoint I get as response:
{"error":{"code":500,"message":"failed reading parameters from request:json: cannot unmarshal string into Go struct field OpenAIRequest.temperature of type float64","type":""}}
Is a windows releated problem?
Hi, @MarcoLavoro , thanks for your feedback. Please show us more detail, like the prompt and your env information. It looks like the temperature
cannot be "", it should be a float64 number.
Closing, the temperature should be a float64
, not a string.