Skip to content

Implicit ignore of omitempty struct tags #539

Description

@l0nedigit

Just a thought, but it may be worthwhile to add a note on structured outputs (docs & codebase) in that if your struct tags have omitempty that the openai-go api will silently ignore them and the model will not populate that field.

Chased my tail on this one for a while. Is there a way to specify to not ignore omitempty tags?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocsIssue concerns documentation, examples, or usage guidance.

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions