onlook icon indicating copy to clipboard operation
onlook copied to clipboard

feat: add support for OpenAI and Gemini LLM providers (#2299)

Open IkramBagban opened this issue 10 months ago • 3 comments

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_KEY and GOOGLE_API_KEY in .env.example.
  • Dependencies:
    • Adds @ai-sdk/google and @ai-sdk/openai to package.json.
  • Models:
    • Adds OPENAI_MODELS and GEMINI_MODELS enums in index.ts.
  • Functions:
    • Adds getOpenAIProvider() and getGoogleProvider() in providers.ts.

This description was created by Ellipsis for 8c2bc7464a0c4b3799e7138abb93ce5547f387a8. You can customize this summary. It will automatically update as commits are pushed.

IkramBagban avatar Jun 28 '25 20:06 IkramBagban

@IkramBagban is attempting to deploy a commit to the Onlook Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Jun 28 '25 20:06 vercel[bot]

Hey @ashu565 @Kitenite, please check now

IkramBagban avatar Jun 30 '25 18:06 IkramBagban

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.

ashu565 avatar Jun 30 '25 19:06 ashu565

Thanks @IkramBagban for the nice PR! And @ashu565 for helping with the review :)

Kitenite avatar Jul 04 '25 19:07 Kitenite