Skip to content

Commit 19b0cf6

Browse files
Add OH_LLM_MODEL_KIND env var to enable DB-backed verified models
Wires up the SaaS verified-models DI injector so the OpenHands app reads its verified model list from the database (maintained via the admin API) instead of falling back to the hardcoded list shipped in openhands-sdk. Before OpenHands/OpenHands#14237, enterprise/saas_server.py called override_llm_models_dependency() unconditionally. That PR replaced the mechanism with a generic LLMModelServiceInjector whose default is DefaultLLMModelService (hardcoded). The SaaS variant (SaaSLLMModelServiceInjector) is now only registered when OH_LLM_MODEL_KIND points at it. Production was therefore silently serving the hardcoded model list and admin-API changes did not show up in app.all-hands.dev. Mirrors the pattern already used for OH_APP_CONVERSATION_INFO_KIND. Fixes #677 Co-authored-by: openhands <openhands@all-hands.dev>
1 parent ed0435b commit 19b0cf6

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

charts/openhands/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
description: OpenHands is an AI-driven autonomous software engineer
33
name: openhands
44
appVersion: cloud-1.34.0
5-
version: 0.7.34
5+
version: 0.7.35
66
maintainers:
77
- name: rbren
88
- name: xingyao

charts/openhands/templates/_env.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,8 @@
529529
value: "saas"
530530
- name: OH_APP_CONVERSATION_INFO_KIND
531531
value: server.utils.saas_app_conversation_info_injector.SaasAppConversationInfoServiceInjector
532+
- name: OH_LLM_MODEL_KIND
533+
value: server.verified_models.verified_model_router.SaaSLLMModelServiceInjector
532534
- name: CONVERSATION_MANAGER_CLASS
533535
value: server.saas_nested_conversation_manager.SaasNestedConversationManager
534536
{{- if (index .Values "plugin-directory").enabled }}

0 commit comments

Comments
 (0)