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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/clean-cobras-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/openai': patch
---

chore (@ai-sdk/openai): export provider options
3 changes: 3 additions & 0 deletions packages/openai/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
export { createOpenAI, openai } from './openai-provider';
export type { OpenAIProvider, OpenAIProviderSettings } from './openai-provider';
export type { OpenAIResponsesProviderOptions } from './responses/openai-responses-language-model';
export type { OpenAIEmbeddingProviderOptions } from './openai-embedding-options';
export type { OpenAIProviderOptions } from './openai-chat-options';
export type { OpenAITranscriptionProviderOptions } from './openai-transcription-options';
Comment on lines +4 to +6
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

3 changes: 0 additions & 3 deletions packages/openai/src/internal/index.ts
Original file line number Diff line number Diff line change
@@ -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-embedding-model';
export * from '../openai-embedding-options';
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

export * from '../responses/openai-responses-language-model';
Loading