mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
Lemonade Provider Integration (#11181)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user