mirror of
https://github.com/johndoe6345789/AutoMetabuilder.git
synced 2026-05-06 19:49:38 +00:00
f395031366
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
10 lines
248 B
Python
10 lines
248 B
Python
"""Resolve the LLM model name."""
|
|
import os
|
|
|
|
DEFAULT_MODEL = "openai/gpt-4o"
|
|
|
|
|
|
def resolve_model_name(prompt: dict) -> str:
|
|
"""Resolve model name from env or prompt."""
|
|
return os.environ.get("LLM_MODEL", prompt.get("model", DEFAULT_MODEL))
|