Skip to content

Commit 4c2b249

Browse files
committed
Fix: Await initial model update and update aient submodule
The `update_initial_model` function is now async but was not being awaited in the `reset_chat` command handler. This commit adds the necessary `await` to ensure the initial model is correctly retrieved and set. Additionally, this commit: - Updates the `aient` submodule to the latest version. - Bumps the project version to 1.0.10 for the new release.
1 parent fe39293 commit 4c2b249

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ async def reset_chat(update, context):
782782
"tools": True,
783783
"image": True
784784
}
785-
config.initial_model = remove_no_text_model(update_initial_model(provider))
785+
config.initial_model = remove_no_text_model(await update_initial_model(provider))
786786
await delete_message(update, context, [message.message_id, user_message_id])
787787

788788
@decorators.AdminAuthorization

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "chatgpt-telegram-bot"
3-
version = "1.0.9"
3+
version = "1.0.10"
44
description = "Add your description here"
55
readme = "README.md"
66
requires-python = ">=3.11"

0 commit comments

Comments
 (0)