Lemonade Provider Integration (#11181)

This commit is contained in:
eddierichter-amd
2025-10-08 23:35:02 -06:00
committed by GitHub
parent 843cc00e79
commit a97e1471bb
5 changed files with 85 additions and 36 deletions

View File

@@ -107,10 +107,15 @@ async def start_conversation(
# but that would run a tiny inference.
model_name = settings.llm_model or ''
is_bedrock_model = model_name.startswith('bedrock/')
is_lemonade_model = model_name.startswith('lemonade/')
if not is_bedrock_model and (
not settings.llm_api_key
or settings.llm_api_key.get_secret_value().isspace()
if (
not is_bedrock_model
and not is_lemonade_model
and (
not settings.llm_api_key
or settings.llm_api_key.get_secret_value().isspace()
)
):
logger.warning(f'Missing api key for model {settings.llm_model}')
raise LLMAuthenticationError(