← Về thư mục
openai4s/host/llm.py
- LLMService · class · L11-L77 — class LLMService
- init · method · L14-L27 — def init( self, config: Config | Callable[[], Config], *, chat_call: Callable[..., dict] | None = None, one_call: Callable[[dict], str] | None = None, fanout_cap: int | Callable[[], int] = 32, executor_factory: Callable[..., Any] = ThreadPoolExecutor, ) -> None
- _config · method · L29-L30 — def _config(self) -> Config
- _fanout_cap · method · L32-L33 — def _fanout_cap(self) -> int
- _chat · method · L35-L40 — def _chat(self, args, *kwargs) -> dict
- one · method · L42-L50 — def one(self, spec: dict) -> str
- _complete_one · method · L52-L53 — def _complete_one(self, spec: dict) -> str
- complete · method · L55-L64 — def complete(self, spec: dict) -> Any
- current_model · method · L66-L67 — def current_model(self) -> str
- list_models · method · L69-L77 — def list_models(self) -> list[dict]