Skip to content

Conversation

@crabhit
Copy link

@crabhit crabhit commented Dec 18, 2025

Fixes #37

Summary

  • Adds OpenAI and Azure OpenAI provider support using the official openai npm package
  • Creates unified adapter that handles both OpenAI and Azure OpenAI
  • Preserves Azure-specific quirks (array schema wrapping, max_completion_tokens)

Changes

  • Added openai package dependency
  • New lib/ai-providers/openai-adapter.ts with both createOpenAIAdapter() and createAzureOpenAIAdapter()
  • Updated lib/ai-providers/registry.ts to register new providers
  • Added test script scripts/test-azure-openai.ts

Test plan

  • Build passes
  • Test with Azure OpenAI credentials

@vercel
Copy link

vercel bot commented Dec 18, 2025

@crabhit is attempting to deploy a commit to the samuelz12's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Add support for OpenAI and Azure OpenAI models

1 participant