cogentapps / chat-with-gpt

An open-source ChatGPT app with a voice
https://www.chatwithgpt.ai
MIT License
2.31k stars 493 forks source link

LangChain Feature #52

Open LeakedDave opened 1 year ago

LeakedDave commented 1 year ago

First off, wow, impressive. I was about to build this myself to get around GPT-4 limits. And I was going to give it Eleven labs voice. You already did it. Which is awesome. Great stuff here. I’ll be using this a lot.

I know this is open source and I will dig around. But I want to hook this chat UI that you’ve built up to lang chain, so I can retrieve data from external sources and also issue natural language commands through Zapier.

Can you point me in the right direction to which files I need to look at in order to override the actual API requests so I can run them through custom functions that attach Lang Chain tools to the model?

Cheers.

tluyben commented 1 year ago

https://github.com/cogentapps/chat-with-gpt/blob/main/app/src/openai.ts

should do it.