mckaywrigley / chatbot-ui

AI chat for every model.
https://chatbotui.com
MIT License
27.34k stars 7.58k forks source link

Helicone Support #1525

Open chitalian opened 4 months ago

chitalian commented 4 months ago

Hello! Can we add support for Helicone to Chatbot UI?

I can help cut the PR, it should be really simple. You just need to add the ability to enable Helicone and store the Helicone API key.

We have a few customers of Helicone asking for this, it should be a simple lift.

I assume we can attach a new element to the profile object like proxyProvider or something and then configure it within the settings panel.

fkesheh commented 4 months ago

You need to do something like this PR: https://github.com/mckaywrigley/chatbot-ui/pull/1510

Can you create a pull request?

chitalian commented 3 weeks ago

Hi @fkesheh actually all we need to do is set the OPEN_API_BASE. Do you know if I can do this easily somewhere?

fkesheh commented 3 weeks ago

You will need to change the api/chat files like this one and attach a new base API for it

https://github.com/mckaywrigley/chatbot-ui/blob/main/app/api/chat/openai/route.ts

fkesheh commented 2 weeks ago

Perhaps you can also try to set OPENAI_BASE_URL in .env.local - I believe OpenAI library picks that automatically

https://github.com/openai/openai-node/blob/70d2bb37fae06e685f73a98db3eca6e540c8ed01/src/index.ts#L31