mirror of
https://github.com/Balshgit/gpt_chat_bot.git
synced 2025-12-16 21:20:39 +03:00
rename chatgpt microservice (#30)
* rename chagpt microservice * add deprecated models
This commit is contained in:
@@ -32,7 +32,7 @@ def upgrade() -> None:
|
||||
if models:
|
||||
return None
|
||||
models = []
|
||||
for model in ChatGptModelsEnum:
|
||||
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))
|
||||
|
||||
Reference in New Issue
Block a user