feat: add support for OpenAI and Gemini LLM providers (#2299)
Description
Added support for additional LLM providers: OpenAI and Google Gemini
Related Issues
closes #2299
Type of Change
- [ ] Bug fix
- [x] New feature
- [ ] Documentation update
- [ ] Release
- [ ] Refactor
- [ ] Other (please describe):
Testing
Screenshots (if applicable)
Additional Notes
[!IMPORTANT] Adds support for OpenAI and Google Gemini LLM providers, updating environment variables, dependencies, and provider initialization logic.
- Behavior:
- Adds support for OpenAI and Google Gemini LLM providers in
providers.ts.- Requires
OPENAI_API_KEYandGOOGLE_API_KEYin.env.example.- Dependencies:
- Adds
@ai-sdk/googleand@ai-sdk/openaitopackage.json.- Models:
- Adds
OPENAI_MODELSandGEMINI_MODELSenums inindex.ts.- Functions:
- Adds
getOpenAIProvider()andgetGoogleProvider()inproviders.ts.This description was created by
for 8c2bc7464a0c4b3799e7138abb93ce5547f387a8. You can customize this summary. It will automatically update as commits are pushed.
@IkramBagban is attempting to deploy a commit to the Onlook Team on Vercel.
A member of the Team first needs to authorize it.
Hey @ashu565 @Kitenite, please check now
This looks great now! If possible, could you please share a screenshot or a short video demo of it in action? I'd be happy to test it on my end as well and share a screenshot if that helps.
Thanks @IkramBagban for the nice PR! And @ashu565 for helping with the review :)