Skip to content

fix: update provider for AI SDK 5#14

Open
slegarraga wants to merge 1 commit into
Portkey-AI:mainfrom
slegarraga:fix-ai-sdk-5-provider-v2
Open

fix: update provider for AI SDK 5#14
slegarraga wants to merge 1 commit into
Portkey-AI:mainfrom
slegarraga:fix-ai-sdk-5-provider-v2

Conversation

@slegarraga

Copy link
Copy Markdown

Summary

  • updates the Portkey provider from AI SDK v1 provider types to the AI SDK 5 ProviderV2/LanguageModelV2 surface
  • delegates chat, completion, and embedding models through createOpenAICompatible
  • updates the custom image model to ImageModelV2

Closes #11.

Validation

  • pnpm type-check
  • pnpm build
  • local consumer project with ai@5.0.198, zod@3.25.76, and this branch installed via file:: pnpm type-check

Note: pnpm test:node currently fails before running tests because vitest is not declared in devDependencies; I left that existing test setup issue unchanged.

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.

Incompatible with ai@5.0

1 participant