← Về thư mục
openai4s/llm/init.py
- _post_json · function · L114-L126 — def _post_json(url: str, payload: dict, headers: dict, timeout: float, **kw) -> dict
- _post_sse · function · L129-L134 — def _post_sse( url: str, payload: dict, headers: dict, timeout: float, on_event, **kw ) -> None
- chat · function · L137-L173 — def chat( messages: list[dict[str, Any]], cfg: LLMConfig, *, max_tokens: int | None = None, temperature: float | None = None, stop: list[str] | None = None, on_delta=None, tools: list[Any] | tuple[Any, ...] | None = None, tool_choice: Any = None, parallel_tool_calls: bool | None = None, should_cancel=None, ) -> dict[str, Any]