MCPcopy Create free account
hub / github.com/InfinitiBit/graphbit / get_standard_llm_config

Function get_standard_llm_config

benchmarks/frameworks/common.py:424–431  ·  view source on GitHub ↗

Get standardized LLM configuration with defaults.

(config: Dict[str, Any])

Source from the content-addressed store, hash-verified

422
423# Common configuration helper
424def 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
434def 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:

Callers 2

_get_llm_paramsMethod · 0.85
setupMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected