go-openai
go-openai copied to clipboard
when the apikey is use out money it return EOF?
maybe then you use out money ,it should return error ,like
You exceeded your current quota, please check your plan and billing details.
this is a apikey for test : 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
encounter the same problem
I think this might be resolved by https://github.com/sashabaranov/go-openai/pull/248
I was getting the exceeded quota error which would cause this library to panic with error, json: cannot unmarshal number into Go struct field APIError.error.code of type string
, but the library now parses the error correctly.
I'm closing this because it appears to have already been resolved.