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
Hi! While doing a quick code search, I found that the code incorrectly exposes the MaxTokens field with the - key during JSON marshaling and unmarshaling. This is caused by the json:"-,omitempty" tag; by adding the , after the -, the - becomes the field key.
Hi! While doing a quick code search, I found that the code incorrectly exposes the
MaxTokens
field with the-
key during JSON marshaling and unmarshaling. This is caused by thejson:"-,omitempty"
tag; by adding the,
after the-
, the-
becomes the field key.langchaingo/llms/openai/internal/openaiclient/chat.go
Line 37 in d3e43b6
langchaingo/llms/openai/internal/openaiclient/completions.go
Line 13 in d3e43b6
You can confirm this Go behavior with the following script:
The text was updated successfully, but these errors were encountered: