Get standardized LLM configuration with defaults.
(config: Dict[str, Any])
| 422 | |
| 423 | # Common configuration helper |
| 424 | def get_standard_llm_config(config: Dict[str, Any]) -> Dict[str, Any]: |
| 425 | """Get standardized LLM configuration with defaults.""" |
| 426 | return { |
| 427 | "model": config.get("model", DEFAULT_MODEL), |
| 428 | "temperature": config.get("temperature", DEFAULT_TEMPERATURE), |
| 429 | "max_tokens": config.get("max_tokens", DEFAULT_MAX_TOKENS), |
| 430 | "api_key": config.get("api_key"), |
| 431 | } |
| 432 | |
| 433 | |
| 434 | def create_llm_config_from_args(provider: str, model: str, temperature: float, max_tokens: int, api_key: Optional[str] = None, base_url: Optional[str] = None, **kwargs: Any) -> LLMConfig: |
no test coverage detected