← Về thư mục
openai4s/llm/client.py
- supports_vision · function · L23-L27 — def supports_vision(provider: str) -> bool: # Resolve through the capability layer so a deployment override is honored; # keep provider_spec's historical LLMError for unknown names.
- supports_vision_for · function · L30-L46 — def supports_vision_for(cfg: LLMConfig) -> bool
- _guard_vision · function · L49-L61 — def _guard_vision(provider: str, messages: list[dict], *, capabilities=None) -> None
- chat · function · L64-L149 — 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, post_json, post_sse, ) -> dict[str, Any]