Generative components¶
Use these generative:name targets in configuration _target_ fields. Add the defining module to _imports_ to register a component explicitly. Method components and benchmark probes require these imports.
| Target | Description |
|---|---|
generative:openai_chat |
Text replies from a chat-completions endpoint; see the module docstring. |
generative:openai_chat¶
Text replies from a chat-completions endpoint; see the module docstring.
Defining module / _imports_: egolearn.model.generative.openai_chat.
OpenAIChat(base_url: str, model: str, api_key_env: str | None = None, video_input: str = "video", system_prompt: str | None = None, max_tokens: int = 128, temperature: float = 0.0, jpeg_quality: int = 90, cache_dir: str | None = None, concurrency: int = 8, timeout: float = 600.0, max_retries: int = 3)