yvann-ba / Robby-chatbot

AI chatbot 🤖 for chat with CSV, PDF, TXT files 📄 and YTB videos 🎥 | using Langchain🦜 | OpenAI | Streamlit ⚡
MIT License
766 stars 287 forks source link

text-davinci-003 model #46

Closed AhmedEwis closed 1 year ago

AhmedEwis commented 1 year ago

Hello, thanks for this amazing project.

I have added in sidebar.py the model text-davinci-003 model

MODEL_OPTIONS = ["gpt-3.5-turbo", "gpt-4", "text-davinci-003"]

but it is not working, how can i add it?

yvann-ba commented 1 year ago

Hi, this is normal because langchain differentiates chat models from completion models. In the model selection I put ChatOpenAi to load chat models if you want to put a completion model you just have to do an if to check which model the user has chosen and load the adapted langchain function, look in the langchain doc you'll easily find an answer.