Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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 10 commits into from
Mar 18, 2021
Merged

migrate to 0.6.0 #7

merged 10 commits into from
Mar 18, 2021

Conversation

hallacy
Copy link
Collaborator

@hallacy hallacy commented Mar 18, 2021

  • adds support for file management
  • answers and classifications endpoints have been moved to their own classes and can be called like openai.Answer.create(...)

hallacy added 10 commits March 18, 2021 11:37
* 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
@hallacy hallacy requested a review from emorikawa March 18, 2021 19:20
Copy link
Contributor

@emorikawa emorikawa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hallacy hallacy merged commit 4e38179 into main Mar 18, 2021
@hallacy hallacy deleted the hallacy/migrate-to_0.6.0 branch March 18, 2021 19:24
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants