Implement llm-connect ADHOC diagnostics
This commit is contained in:
parent
79c899b694
commit
24f4c09d42
17 changed files with 1618 additions and 611 deletions
|
|
@ -9,6 +9,7 @@ from llm_connect.adapter import LLMAdapter
|
|||
from llm_connect.models import RunConfig, LLMResponse
|
||||
from llm_connect.config import resolve_api_key, find_project_root
|
||||
from llm_connect._http import post_json
|
||||
from llm_connect._payload import merge_gemini_model_params
|
||||
from llm_connect.exceptions import LLMConfigurationError
|
||||
|
||||
_DEFAULT_MODEL = "gemini-2.5-flash"
|
||||
|
|
@ -74,6 +75,8 @@ class GeminiAdapter(LLMAdapter):
|
|||
"maxOutputTokens": config.max_tokens,
|
||||
},
|
||||
}
|
||||
if config.model_params:
|
||||
merge_gemini_model_params(payload, config.model_params)
|
||||
|
||||
url = f"{_API_BASE}/models/{model}:generateContent?key={self._api_key}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue