clidey / whodb

A lightweight next-gen data explorer - Postgres, MySQL, SQLite, MongoDB, Redis, MariaDB & Elastic Search with Chat interface
https://whodb.clidey.com
GNU General Public License v3.0
1.87k stars 52 forks source link

[FR] Add support for Openai-like API's #147

Open V3NCO opened 2 months ago

V3NCO commented 2 months ago

Hi ! I have a little enhancement suggestion for Houdini; Houdini already has support for chat-gpt, but today, a lot of AI services online provide "openai-like API's", basically apis almost identical to openai's one, but it points to another service (example : Groq with "https://api.groq.com/openai/v1") what would be great is to add a field (in the same place as the token field) but instead of asking for the token, it asks for the api endpoint.

hkdeman commented 2 months ago

Thank you for the suggestion and the PR!

If this is identical to ChatGPT endpoint - it should be fairly simple to extend this!

Could you elaborate on the use-case by the way? Would love to get feedback on Houdini's usage with other LLMs.

V3NCO commented 2 months ago

Hi, i didn't understand this...

If this is identical to ChatGPT endpoint - it should be fairly simple to extend this!

Is a feature to change the endpoint already available ? The use case would basically be to be able to use external services, this would give ability to use : better services in the furture, free services, or even use self hosted ai thats not on the same server than whodb, idk ,

it could look like this : image image

But if it already exists i'd love to know where the feature is

hkdeman commented 1 month ago

Hey, apologies for missing this!

That sounds great! I meant like if the API of the Endpoint is of similar definition as ChatGPT then we could extend it to have its own Endpoint. Hoping to get this out soon!