continue-custom/docs/docs/reference/Models/queued.md
2023-09-14 10:54:08 -07:00

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>)
    )
)

View the source

Properties

Inherited Properties