Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add items, which is required for array type #373

Merged
merged 2 commits into from
Jun 16, 2023

Conversation

nftechie
Copy link
Contributor

When using openai.JSONSchemaTypeArray, you must define and "Items" object, otherwise OpenAI will return a 400.

@codecov
Copy link

codecov bot commented Jun 15, 2023

Codecov Report

Merging #373 (18c02f2) into master (0bd14f9) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #373   +/-   ##
=======================================
  Coverage   95.22%   95.22%           
=======================================
  Files          17       17           
  Lines         670      670           
=======================================
  Hits          638      638           
  Misses         22       22           
  Partials       10       10           
Impacted Files Coverage Δ
chat.go 100.00% <ø> (ø)

Copy link
Owner

@sashabaranov sashabaranov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@sashabaranov sashabaranov merged commit ac25f31 into sashabaranov:master Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants