Skip to content

[BUG] SillyTavern takes >15 seconds to send a request to proxy server with long conversations (>6000 context tokens) #228

Description

@rsmyst

Describe the bug
Basically, when conversations exceed about 5500 or 6000 tokesn in context, the time taken for silly to make a request to the proxy server increases to around 15-20 seconds. that is, thw browser basically shows the loading symbol for 15-20 seconds but console shows no request being made or any changes. but after ~15 seconds approx, the console finally updates and shows the change.
Also, tested it on both firefox and brave, same results.
TLDR:
Conversations take <3 seconds to send request otherwise in the beginning of conversation, increasing to around 15-20 seconds to even send request to proxy server by the end.

Also tried restarting silly tavern a few times (closing cmd and reopening using .bat script), did not help.

EDIT: I should also add that this is same across multiple proxies with same chat. for example, in my case, switching between todd proxy and gpt4 proxy had no change becuase issue seems to be caused from tavern's end and not the proxy itself.

Edit2: the tiem to send a request is about directly proportional to context length. reducing from 7K context to 4.5K context dramatically improved performance from tavern so it's definitely a tavern side thing rather than proxy side becuase time to send context to proxy is WAY faster at 4.5K (around 4 seconds) compared to 15-20 seconds with 7K context (even if it's not filled up even)

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 Bug[ISSUE] Ticket describing something that isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions