Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix: default enterprise injector kinds in the image, not just the chart (#14811)

Alona48cc27ab9d9d
diff --git a/enterprise/Dockerfile b/enterprise/Dockerfile
index 2de330d9f8..42e11ac40c 100644
--- a/enterprise/Dockerfile
+++ b/enterprise/Dockerfile
@@ -44,6 +44,12 @@ RUN cd /tmp/enterprise && \
WORKDIR /app
COPY --chown=openhands:openhands --chmod=770 enterprise .
+# Default the enterprise service-injector kinds in the image (overridable via env).
+# Keeping these next to the classes they name means the chart never references an
+# app-internal class path, so a chart/image version skew can't crashloop config load.
+ENV OH_LLM_MODEL_KIND=server.verified_models.litellm_proxy_model_router.LiteLLMProxyModelServiceInjector
+ENV OH_APP_CONVERSATION_INFO_KIND=server.utils.saas_app_conversation_info_injector.SaasAppConversationInfoServiceInjector
+
USER openhands
# Command will be overridden by Kubernetes deployment template