go-openai
go-openai copied to clipboard
json: cannot unmarshal string into Go struct field Hyperparameters.hyperparameters.n_epochs of type int
CreateFineTuningJob results in the error:
json: cannot unmarshal string into Go struct field Hyperparameters.hyperparameters.n_epochs of type int
It looks like OpenAI is returning the following default for Hyperparameters now:
"hyperparameters": {
"n_epochs": "auto"
},
And CreateFineTuningJob's response decodes to FineTuningJob, where Hyperparameters are defined as an int type.
The "auto" value eventually turns into an int when you list succeeded jobs, though.