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

Support for ChatGPT API #43

Merged
merged 3 commits into from
Mar 1, 2023
Merged

Support for ChatGPT API #43

merged 3 commits into from
Mar 1, 2023

Conversation

m1guelpf
Copy link
Contributor

@m1guelpf m1guelpf commented Mar 1, 2023

Closes #42

I moved the chat functions to a new file because chat().create() seemed cleaner than completions().create_chat(), but let me know if that's preferred.

@64bit
Copy link
Owner

64bit commented Mar 1, 2023

Hi @m1guelpf , thank you for your wonderful contribution. I love it.

I noticed that streaming response is different (not documented in the API or docs) so I'll happily take this contribution but make required changes so that streaming response don't crash. Also I'm adding examples and Transcription API at the moment.

I'll make those changes before releasing a new version.

@64bit 64bit merged commit b326ca7 into 64bit:main Mar 1, 2023
@64bit
Copy link
Owner

64bit commented Mar 1, 2023

Its published on 0.8.0.

You will notice types are renamed to be consistent with the names from OpenAPI spec.

@m1guelpf m1guelpf deleted the chatgpt branch March 2, 2023 04:15
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.

Add ChatGPT API
2 participants