Open KATTA-00 opened 2 months ago
After generating the client from the OpenAI OpenAPI spec, I encountered the following runtime error:
Error: Payload binding failed: 'map' value cannot be converted to 'client:OpenAIFile': Field 'status_details' in record 'client:OpenAIFile' should be of type 'string', but found '()'.
Error: Payload binding failed: 'map' value cannot be converted to 'client:OpenAIFile':
To work around this issue, I modified the status_details property in the OpenAIFile object as follows:
status_details
OpenAIFile
Original: Deprecated: true Nullable: Not specified Updated: Removed the deprecated parameter Added the nullable parameter with a value of true
Original:
true
Updated:
deprecated
nullable
This adjustment resolves the error and allows the client to function correctly.
Description
After generating the client from the OpenAI OpenAPI spec, I encountered the following runtime error:
To work around this issue, I modified the
status_details
property in theOpenAIFile
object as follows:This adjustment resolves the error and allows the client to function correctly.