From c031609c304c6f58051b1e61c1d7d11aac5ed03b Mon Sep 17 00:00:00 2001 From: snowby666 Date: Thu, 20 Jun 2024 20:47:14 +0700 Subject: [PATCH] Update: OpenAI support + updated new models --- poe_api_wrapper/openai/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poe_api_wrapper/openai/api.py b/poe_api_wrapper/openai/api.py index dd58965..27bc358 100644 --- a/poe_api_wrapper/openai/api.py +++ b/poe_api_wrapper/openai/api.py @@ -63,7 +63,7 @@ async def message_handler(baseModel: str, messages: list[dict[str, str]], tokens rest_string = await helpers.__stringify_messages(messages=messages) rest_string = await helpers.__progressive_summarize_text( - rest_string, min(len(rest_string), tokensLimit) # bullshitting values as im not sure of token->characters conversion + rest_string, min(len(rest_string), tokensLimit) ) message = f"IGNORE PREVIOUS MESSAGES.\n\nYour current message context: {rest_string}\n\nThe most recent message: {main_request}\n\n"