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

feat(api): releases from DevDay; assistants, multimodality, tools, dall-e-3, tts, and more #682

Merged
merged 3 commits into from
Nov 6, 2023

Conversation

RobertCraigie
Copy link
Collaborator

No description provided.

@RobertCraigie
Copy link
Collaborator Author

Includes a version bump to v1.1.0

@combacsa
Copy link

combacsa commented Nov 6, 2023

This may be inappropriate place to post question, though... Just tried to use beta.assistants API along with this pull request, following guides available on the pages like ASSISTANTS - Tools - Code Interpreter

import openai
client = openai.Client(api_key="[REDACTED]")
assistant = client.beta.assistants.create(
     name="Math Tutor",
     instructions="You are a personal math tutor. Write and run code to answer math questions.",
     tools=[{"type": "code_interpreter"}],
     model="gpt-4-1106-preview"
)
NotFoundError: Error code: 404 - {'error': {'message': 'Invalid URL (POST /v1/assistants)', 'type': 'invalid_request_error', 'param': None, 'code': None}}

I tried with pip install -U git+https://github.com/openai/openai-python.git@637556b8c03d24cb63df97d019c72823e2b04f63, please let me know if I'm doing something wrongly.

(Maybe I'm just trying it too early?)

(Updated: Ah, I just read "We'll begin rolling out new features to OpenAI customers starting at 1pm PT today." somewhere on Discord. I'll try it again one hour later. Sorry!)

@schnerd schnerd merged commit baa9f07 into main Nov 6, 2023
1 check passed
@schnerd schnerd deleted the robert/api-updates branch November 6, 2023 20:35
@chadlieberman-flywire
Copy link

This may be inappropriate place to post question, though... Just tried to use beta.assistants API along with this pull request, following guides available on the pages like ASSISTANTS - Tools - Code Interpreter

import openai
client = openai.Client(api_key="[REDACTED]")
assistant = client.beta.assistants.create(
     name="Math Tutor",
     instructions="You are a personal math tutor. Write and run code to answer math questions.",
     tools=[{"type": "code_interpreter"}],
     model="gpt-4-1106-preview"
)
NotFoundError: Error code: 404 - {'error': {'message': 'Invalid URL (POST /v1/assistants)', 'type': 'invalid_request_error', 'param': None, 'code': None}}

I tried with pip install -U git+https://github.com/openai/openai-python.git@637556b8c03d24cb63df97d019c72823e2b04f63, please let me know if I'm doing something wrongly.

(Maybe I'm just trying it too early?)

(Updated: Ah, I just read "We'll begin rolling out new features to OpenAI customers starting at 1pm PT today." somewhere on Discord. I'll try it again one hour later. Sorry!)

I'm still getting this error. Using v1.1.0

@barrenechea
Copy link

There are several retreival instead of retrieval, FYI!

@RobertCraigie
Copy link
Collaborator Author

Thanks @barrenechea! Looking into it.

@combacsa
Copy link

combacsa commented Nov 6, 2023

Just FYI, openai-node seems to have similar issue(retreival instead of retrieval). https://github.com/openai/openai-node/blob/d4d46873ce3bf9193c8328cc019057fbb124f783/src/resources/beta/assistants/assistants.ts#L158

@RobertCraigie
Copy link
Collaborator Author

Yes both the Node SDK and the Python SDK are generated from the same source, the OpenAI openapi spec. Fixes coming to both shortly.

@stainless-bot stainless-bot mentioned this pull request Nov 6, 2023
megamanics pushed a commit to devops-testbed/openai-python that referenced this pull request Aug 14, 2024
…ll-e-3, tts, and more (openai#682)

* feat(api): releases from DevDay; assistants, multimodality, tools, dall-e-3, tts, and more

* docs(api): improve docstrings

* v1.1.0
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.

5 participants