8000 refactor: API by h0rv · Pull Request #23 · 567-labs/instructor-go · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

refactor: API #23

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

Merged
merged 3 commits into from
May 30, 2024
Merged

refactor: API #23

merged 3 commits into from
May 30, 2024

Conversation

h0rv
Copy link
Collaborator
@h0rv h0rv commented May 30, 2024

Refactored the API to not conform to OpenAI's API, but rather to just override the specific client's chat/messages API.

This approach allows for client specific options to not be lost, be able to run all client methods with the instructor wrapper, and simplifies the implementation (don't need to convert from OpenAI struct to Anthropic (or any other client)).

@h0rv h0rv changed the title refactor: API and Interface refactor: API May 30, 2024
@h0rv h0rv merged commit fd8f009 into 567-labs:main May 30, 2024
@h0rv h0rv deleted the refactor-api branch May 30, 2024 17:46
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
0