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

Update comment for jsonSchema.FunctionDefinition #441

Merged

Conversation

savannahostrowski
Copy link
Contributor

Describe the change
Currently, the comment for the Parameters property in the jsonschema.FunctionDefinition struct says that you can pass in a []byte{}. However, this does not work and you need to use json.RawMessage() instead.

Describe your solution
Just updated the comment :)

Tests
Not applicable!

Additional context
Passing in []byte{} leads to base64'd value
image

@codecov
Copy link

codecov bot commented Jul 15, 2023

Codecov Report

Merging #441 (cd7b937) into master (0234c1e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #441   +/-   ##
=======================================
  Coverage   97.03%   97.03%           
=======================================
  Files          17       17           
  Lines         709      709           
=======================================
  Hits          688      688           
  Misses         15       15           
  Partials        6        6           
Impacted Files Coverage Δ
chat.go 100.00% <ø> (ø)

@vvatanabe vvatanabe merged commit 1876e0c into sashabaranov:master Jul 15, 2023
3 checks passed
@vvatanabe
Copy link
Collaborator

@savannahostrowski Thanks for the correction of the comment!

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.

None yet

2 participants