-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Conversation
d53c857
to
90b9c52
Compare
packages/openai-compatible/src/openai-compatible-completion-language-model.ts
Outdated
Show resolved
Hide resolved
e32f8db
to
2978847
Compare
import { createOpenAICompatible } from '@ai-sdk/openai-compatible'; | ||
``` | ||
|
||
## Example |
There was a problem hiding this comment.
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.
21e1cc0
to
c7ecf2f
Compare
There was a problem hiding this comment.
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.
c7ecf2f
to
83679e8
Compare
examples/ai-core/src/embed-many/openai-compatible-togetherai.ts
Outdated
Show resolved
Hide resolved
ff5384d
to
166a0d1
Compare
166a0d1
to
b7c31ea
Compare
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/[email protected] |
b7c31ea
to
29b20a8
Compare
Breakout from #3781. Follow-up items:
json_schema
andstructuredOutputs
inopenai-compatible-chat-language-model.ts
content
)