update poetry.lock & add provider VoiGpt (#64)

* update poetry.lock

* fix queue test

* update to python 3.11.7

* update .gitignore with python version

* add provider VoiGpt

---------

Co-authored-by: Dmitry Afanasyev <afanasiev@litres.ru>
This commit is contained in:
Dmitry Afanasyev
2023-12-11 18:00:55 +03:00
committed by GitHub
parent 2973841137
commit 0584083a4f
11 changed files with 520 additions and 333 deletions

View File

@@ -54,6 +54,7 @@ class ChatGptModelsEnum(StrEnum):
gpt_3_5_turbo_stream_gptTalkRu = "gpt-3.5-turbo--stream-gptTalkRu"
Llama_2_70b_chat_hf_stream_DeepInfra = "Llama-2-70b-chat-hf-stream-DeepInfra"
gpt_4_stream_aivvm = "gpt-4-stream-aivvm"
gpt_3_5_turbo_voiGpt = "gpt-3.5-turbo-voiGpt"
llama2_70B = "llama2-70B"
gpt_3_5_turbo_gptChatly = "gpt-3.5-turbo-gptChatly"
gpt_3_5_turbo_stream_Berlin = "gpt-3.5-turbo-stream-Berlin"
@@ -61,7 +62,6 @@ class ChatGptModelsEnum(StrEnum):
gpt_3_5_turbo_stream_chatGptAi = "gpt-3.5-turbo-stream-chatGptAi"
gpt_3_5_turbo_stream_GeekGpt = "gpt-3.5-turbo-stream-GeekGpt"
gpt_3_5_turbo_stream_gptforlove = "gpt-3.5-turbo-stream-gptforlove"
gpt_3_5_turbo_stream_aivvm = "gpt-3.5-turbo-stream-aivvm"
gpt_3_5_turbo_stream_ChatForAi = "gpt-3.5-turbo-stream-ChatForAi"
@classmethod

View File

@@ -1,5 +1,4 @@
import asyncio
from asyncio import AbstractEventLoop
from unittest import mock
import httpx
@@ -51,10 +50,9 @@ async def test_bot_webhook_endpoint(
async def test_bot_queue(
bot: BotApplication,
event_loop: AbstractEventLoop,
) -> None:
bot_queue = BotQueue(bot_app=bot)
event_loop.create_task(bot_queue.get_updates_from_queue())
asyncio.create_task(bot_queue.get_updates_from_queue())
bot_update = BotUpdateFactory(message=BotMessageFactory.create_instance(text="/help"))