Skip to content

chore (@ai-sdk/openai): export provider options #6713

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

Open
wants to merge 3 commits into
base: v5
Choose a base branch
from

Conversation

nicoalbanese
Copy link
Collaborator

@nicoalbanese nicoalbanese commented Jun 11, 2025

Background

OpenAI provider options were not exposed.

Summary

Exported provider options.

Tasks

  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)

Comment on lines +4 to +6
export type { OpenAIEmbeddingProviderOptions } from './openai-embedding-options';
export type { OpenAIProviderOptions } from './openai-chat-options';
export type { OpenAITranscriptionProviderOptions } from './openai-transcription-options';
Copy link
Collaborator

Choose a reason for hiding this comment

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

rm from internal as well

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've removed them but they were barrel imports, which concerns me a bit.

Tests all pass and builds ok so seems fine.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok this indeed broke things with Azure provider

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

azure seems to be resolved now

@@ -1,13 +1,10 @@
export * from '../openai-chat-language-model';
export * from '../openai-chat-options';
export * from '../openai-completion-language-model';
export * from '../openai-completion-options';
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this be moved as well

export * from '../openai-image-model';
export * from '../openai-image-settings';
export * from '../openai-transcription-model';
export * from '../openai-transcription-options';
export * from '../openai-speech-model';
export * from '../openai-speech-options';
Copy link
Collaborator

Choose a reason for hiding this comment

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

same

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