You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Description:
The ModifyMessage function from the go-openai library expects a parameter metadata of type map[string]any, but the API it interfaces with, specifically the Modify Message endpoint, requires the metadata to be wrapped in a JSON object with a field named "metadata". This discrepancy causes the API call to fail due to an unknown parameter.
To Reproduce:
Call the ModifyMessage function with a non-empty metadata parameter.
Expected Behavior:
The method should serialize the metadata into a JSON object with a field named "metadata" and send it to the API, aligning with the API's expectations.
Environment:
go-openai version: v1.120.3
Go version: go1.21.3
OpenAI API version: v1
OS: Ubuntu 20.04
The text was updated successfully, but these errors were encountered:
Bug Description:
The
ModifyMessage
function from thego-openai
library expects a parametermetadata
of typemap[string]any
, but the API it interfaces with, specifically the Modify Message endpoint, requires the metadata to be wrapped in a JSON object with a field named"metadata"
. This discrepancy causes the API call to fail due to an unknown parameter.To Reproduce:
Call the
ModifyMessage
function with a non-emptymetadata
parameter.Expected Behavior:
The method should serialize the metadata into a JSON object with a field named
"metadata"
and send it to the API, aligning with the API's expectations.Environment:
go-openai
version: v1.120.3The text was updated successfully, but these errors were encountered: