LocalAI icon indicating copy to clipboard operation
LocalAI copied to clipboard

cannot unmarshal string into Go struct field OpenAIRequest.temperature of type float64" on windows?

Open MarcoLavoro opened this issue 1 year ago • 1 comments

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?

MarcoLavoro avatar May 16 '23 15:05 MarcoLavoro

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.

Aisuko avatar May 17 '23 00:05 Aisuko

Closing, the temperature should be a float64, not a string.

mudler avatar Jun 15 '23 07:06 mudler