Skip to content

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
@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