Skip to content
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

feat (packages/openai-compatible): Base for OpenAI-compatible providers. #3812

Merged
merged 6 commits into from
Nov 22, 2024

Conversation

shaper
Copy link
Contributor

@shaper shaper commented Nov 21, 2024

Breakout from #3781. Follow-up items:

@shaper shaper force-pushed the shaper/pr/provider-openai-compatible branch 2 times, most recently from e32f8db to 2978847 Compare November 21, 2024 23:57
import { createOpenAICompatible } from '@ai-sdk/openai-compatible';
```

## Example
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There should be a section on creating a custom provider leveraging this package. I'm planning to add that once we have the TogetherAI one done.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wasn't able to find a model on together.ai that supported image inputs after 30m of trying a few that seemed like they might. So I switched to OpenAI and validated it's operational. I will try with other companies/models later as we generalize the error schema and so forth to make it easier to test others.

@shaper shaper force-pushed the shaper/pr/provider-openai-compatible branch from ff5384d to 166a0d1 Compare November 22, 2024 16:14
Copy link

socket-security bot commented Nov 22, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/next@15.0.4-canary.22 environment, filesystem, network, shell, unsafe +11 121 MB vercel-release-bot

🚮 Removed packages: npm/next@15.0.4-canary.23

View full report↗︎

@shaper shaper force-pushed the shaper/pr/provider-openai-compatible branch from b7c31ea to 29b20a8 Compare November 22, 2024 16:51
@shaper shaper merged commit 962978b into main Nov 22, 2024
9 checks passed
@shaper shaper deleted the shaper/pr/provider-openai-compatible branch November 22, 2024 16:57
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