Skip to content

Fix Audio.transcribe() not passing organization#437

Closed
alexey-pelykh wants to merge 1 commit into
openai:mainfrom
alexey-pelykh:fix/Audio.transcribe
Closed

Fix Audio.transcribe() not passing organization#437
alexey-pelykh wants to merge 1 commit into
openai:mainfrom
alexey-pelykh:fix/Audio.transcribe

Conversation

@alexey-pelykh

Copy link
Copy Markdown

Related to #340

cc @hallacy

@RobertCraigie RobertCraigie added the fixed in v1 Issues addressed by the v1 beta label Nov 6, 2023
@RobertCraigie

Copy link
Copy Markdown
Collaborator

Thanks for putting the time into opening a PR!

We've restructured this in the v1 SDK such that you can't pass in an organisation on a per-method basis, instead you'll have to set it at the client level or use the .with_options() method.

from openai import OpenAI

client = OpenAI(organization='...')
client.with_options(organization='...').chat.completions.create(...)

@alexey-pelykh alexey-pelykh deleted the fix/Audio.transcribe branch November 6, 2023 17:54
stainless-app Bot pushed a commit that referenced this pull request Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fixed in v1 Issues addressed by the v1 beta

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants