Skip to content

Commit

Permalink
Update: OpenAI support + updated new models
Browse files Browse the repository at this point in the history
  • Loading branch information
snowby666 committed Jun 20, 2024
1 parent d6b2b81 commit c031609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poe_api_wrapper/openai/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c031609

Please sign in to comment.