-
Notifications
You must be signed in to change notification settings - Fork 3.9k
migrate to 0.6.0 #7
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Add support for modifying files and file_set support * Bump version * Updated file sets to use name everywhere * Bump to 0.4.0
* Added cli support for file and fileset * Back to .4.0 * Typo * Add some basic tests to confirm that array stuff works * Added a test for multiple prompts.
…rLevel.answer (#7) * refactor retriever endpoint * Actually just make everything a classmethod so you can call it like openai.HigherLevel
* Rename file_sets to collections everywhere
* Higherlevel endpoints now point to v1 * new line
…level (#12) * Move answer and classification to top level attributes * New namespaces for answers and classifications * Meant to make the method create * Go up the class stack since we don't need all the things that engineapiresource gives us
* Add file support to search * Add support for max_rerank * Added return_metadata support
emorikawa
approved these changes
Mar 18, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
stainless-bot
pushed a commit
that referenced
this pull request
Oct 17, 2023
Adds support for streaming responses to the core client and adds streaming support to the `post /completions` endpoint. See `examples/streaming.py` for more detailed usage examples. ## Synchronous Usage ```py response = client.completions.create( model="text-davinci-002", prompt="1,2,3,", max_tokens=5, temperature=0, stream=True, ) for data in response: print(data.json()) ``` ## Asynchronous Usage ```py response = await client.completions.create( model="text-davinci-002", prompt="1,2,3,", max_tokens=5, temperature=0, stream=True, ) async for data in response: print(data.json()) ```
cgayapr
pushed a commit
to cgayapr/openai-python
that referenced
this pull request
Dec 14, 2024
* Add support for modifying files and file_set support (openai#4) * Add support for modifying files and file_set support * Bump version * Updated file sets to use name everywhere * Bump to 0.4.0 * Added cli support for file and fileset (openai#5) * Added cli support for file and fileset * Back to .4.0 * Typo * Add some basic tests to confirm that array stuff works * Added a test for multiple prompts. * refactor retriever endpoint (openai#6) * Make higherlevel have class methods so you can call with openai.HigherLevel.answer (openai#7) * refactor retriever endpoint * Actually just make everything a classmethod so you can call it like openai.HigherLevel * Rename file_sets to collections everywhere (openai#8) * Rename file_sets to collections everywhere * Remove collections (openai#10) * Higherlevel endpoints now point to /v1 (openai#11) * Higherlevel endpoints now point to v1 * new line * Move answer and classification to top level attributes, rename higherlevel (openai#12) * Move answer and classification to top level attributes * New namespaces for answers and classifications * Meant to make the method create * Go up the class stack since we don't need all the things that engineapiresource gives us * Add file support to search (openai#13) * Add file support to search * Add support for max_rerank * Added return_metadata support * Fixed some cherry pick issues
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
answers
andclassifications
endpoints have been moved to their own classes and can be called likeopenai.Answer.create(...)