4 KiB
4 KiB
import ClassPropertyRef from '@site/src/components/ClassPropertyRef.tsx';
QueuedLLM
QueuedLLM exists to make up for LLM servers that cannot handle multiple requests at once. It uses a lock to ensure that only one request is being processed at a time.
If you are already using another LLM class and are experiencing this problem, you can just wrap it with the QueuedLLM class like this:
from continuedev.src.continuedev.libs.llm.queued import QueuedLLM
config = ContinueConfig(
...
models=Models(
default=QueuedLLM(llm=<OTHER_LLM_CLASS>)
)
)