acheong08 / ChatGPT

Reverse engineered ChatGPT API
GNU General Public License v2.0
28k stars 4.48k forks source link

[Feature Request]: V3 - different models for different conversations in the same chatbot object #1430

Closed gchust closed 1 year ago

gchust commented 1 year ago

Is there an existing issue for this?

What would your feature do ?

Currently, one chatbot object can have different conversations, but all those conversations are using the same model engine. It would be more flexible if those conversations could have a different model engine. We can even allow user to set engine dynamic when calling the Ask API (just like the openai api).

Proposed workflow

Maybe we can create separate Conversation class, and each conversation object can manage engine/token limit by itself...

Additional information

I just found that there is a similar PR for V1: https://github.com/acheong08/ChatGPT/pull/1269

For V3, this is more complex because we should take the token limit/truncate things into consideration.