mirror of
https://github.com/Balshgit/gpt_chat_bot.git
synced 2025-12-15 16:10:39 +03:00
update gpt-4-ChatgptAi provider (#42)
* reworked base models priority * add model gpt-4-ChatgptAi
This commit is contained in:
@@ -32,10 +32,8 @@ def upgrade() -> None:
|
||||
if models:
|
||||
return
|
||||
models = []
|
||||
for model in ChatGptModelsEnum.values():
|
||||
priority = 0 if model != "gpt-3.5-turbo-stream-FreeGpt" else 1
|
||||
fields = {"model": model, "priority": priority}
|
||||
models.append(ChatGpt(**fields))
|
||||
for data in ChatGptModelsEnum.base_models_priority():
|
||||
models.append(ChatGpt(**data))
|
||||
session.add_all(models)
|
||||
session.commit()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user