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 openapi.yaml to openai/openai-openapi commit 33d5c27 (latest as of Jun 9th) #64

Merged
merged 3 commits into from
Jun 10, 2024

Conversation

jianghoy
Copy link
Contributor

@jianghoy jianghoy commented Jun 10, 2024

Changes

Copy and paste openai-openapi yaml file and replace existing ones. The major motivation is OpenAI added a new parameter, tool_choice into the RunObject type(see this line vs current repo run object, because my project uses the Assistants API a lot I noticed that missing tool_choice causes my project to work as expected.

Test

I ran the bb test in my local repo. Returns:

~/c/openai-clojure ❯❯❯ bb test                                                              (base)  main ⬆ ✱

Running task for: test
true

misc

I noticed that OpenAI has a lot of updates while the version handily stays at 2.0.0: https://github.com/openai/openai-openapi/blame/master/openapi.yaml#L5, any thoughts on using git submodule to maintain API specs compatibility ? (Assuming in this repo there's no manual update).

@wkok
Copy link
Owner

wkok commented Jun 10, 2024

Thanks!

There's normally a few manual changes needed documented here: https://github.com/wkok/openai-clojure/blob/main/resources/openapi-README.md

I'll merge this PR and make those changes after.

Regarding the tests, bb test is deceiving in that it does not actually run the tests due to this reflection PR that was merged a while back. I think I'm going to revert the reflection warning change as running tests are more important.

@wkok wkok merged commit 3ed200c into wkok:main Jun 10, 2024
1 check passed
@jianghoy
Copy link
Contributor Author

jianghoy commented Jun 11, 2024 via email

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