Skip to content

Commit

Permalink
Update modelmanager
Browse files Browse the repository at this point in the history
  • Loading branch information
ruecat committed Jan 30, 2024
1 parent de19e0b commit fe98416
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bot/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import traceback
import io
import base64

import ollama
bot = Bot(token=token)
dp = Dispatcher()
builder = InlineKeyboardBuilder()
Expand Down Expand Up @@ -97,7 +97,7 @@ async def command_get_context_handler(message: Message) -> None:

@dp.callback_query(lambda query: query.data == "modelmanager")
async def modelmanager_callback_handler(query: types.CallbackQuery):
models = await model_list()
models = ollama.list()["models"]
modelmanager_builder = InlineKeyboardBuilder()
for model in models:
modelname = model["name"]
Expand All @@ -112,7 +112,7 @@ async def modelmanager_callback_handler(query: types.CallbackQuery):
)
)
await query.message.edit_text(
f"Choose model:", reply_markup=modelmanager_builder.as_markup()
f"{len(models)} models available.\n🦙 = Regular\n🦙📷 = Multimodal", reply_markup=modelmanager_builder.as_markup()
)


Expand Down

0 comments on commit fe98416

Please sign in to comment.