mmz-001 / knowledge_gpt

Accurate answers and instant citations for your documents.
https://knowledgegpt.streamlit.app/
MIT License
1.57k stars 716 forks source link

Modifying qa.py to allow for the model kwarg #52

Closed kristianjackson closed 11 months ago

kristianjackson commented 1 year ago

With the release of gpt-4 via the API there can be a parameter passed for model specifying gpt-3.5-turbo or gpt-4; however the current qa.py expects model to be debug or opanai

kristianjackson commented 1 year ago

I already have a code fix that I can apply if you want to create me a new branch

mmz-001 commented 1 year ago

If you can create a PR for this, that'd be great. Iirc, GPT-4 API access is only available for paid users, so we'll have to check that before adding an option to select the model.

mmz-001 commented 11 months ago

With the latest release, you can switch between gpt-3.5 and gpt-4.