:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(aio): fail loudly when an llm judge uses a non-chat model (#106935)
posthog[bot]9f43a0e769fc
diff --git a/nodejs/src/ai-observability/types.ts b/nodejs/src/ai-observability/types.tsindex 7c14c97dee10..eb1fa87d7d8a 100644--- a/nodejs/src/ai-observability/types.ts+++ b/nodejs/src/ai-observability/types.ts@@ -12,6 +12,7 @@ export type EvaluationStatusReason =| 'provider_key_quota_exceeded'| 'provider_key_rate_limited'| 'model_not_found'+ | 'model_not_supported'| 'hog_error'export type EvaluationTarget = 'generation' | 'trace' | 'session'export type EvaluationSettleStrategy = 'fixed_window' | 'inactivity'diff --git a/posthog/temporal/ai_observability/evaluation_errors.py b/posthog/temporal/ai_observability/evaluation_errors.pyindex 6b70bf5182c7..b12e2890ddfc 100644--- a/posthog/temporal/ai_observability/evaluation_errors.py+++ b/posthog/temporal/ai_observability/evaluation_errors.py@@ -98,6 +98,13 @@ USER_ERROR_SPECS: dict[str, EvaluationErrorSpec] = {status_reason=EvaluationStatusReason.MODEL_NOT_FOUND,disables_evaluation=True,),+ "model_not_supported": EvaluationErrorSpec(+ error_type="model_not_supported",+ owner="user",+ safe_message="The selected model does not support chat completions. Choose a chat model before re-enabling.",+ status_reason=EvaluationStatusReason.MODEL_NOT_SUPPORTED,+ disables_evaluation=True,+ ),"hog_error": EvaluationErrorSpec(error_type="hog_error",owner="user",diff --git a/posthog/temporal/ai_observability/evaluation_llm_judge.py b/posthog/temporal/ai_observability/evaluation_llm_judge.pyindex 05fc33cd63dc..5a4b1cc90aba 100644--- a/posthog/temporal/ai_observability/evaluation_llm_judge.py+++ b/posthog/temporal/ai_observability/evaluation_llm_judge.py@@ -46,6 +46,7 @@ from products.ai_observability.backend.llm.errors import (QuotaExceededError,RateLimitError,StructuredOutputParseError,+ UnsupportedModelError,)from products.ai_observability.backend.models.evaluation_configs import (CategoricalOutputConfig,@@ -563,6 +564,18 @@ def call_llm_judge({"error_type": "model_not_found", "provider": provider, "model": model},non_retryable=True,)+ except UnsupportedModelError:+ increment_user_errors("model_not_supported", provider=provider)+ return terminal_user_error_result(+ spec=require_user_error_spec("model_not_supported", is_byok=is_byok),+ message=f"Model '{model}' does not support chat completions. Choose a chat model.",+ allows_na=allows_na,+ output_type=output_type,+ provider=provider,+ model=model,+ key_id=key_id,+ is_byok=is_byok,+ )except StructuredOutputParseError as e:# Skip rather than raise: non-conforming model output is not a PostHog defect, and raising# files a new error tracking issue on each deploy, because the fingerprint follows the stack.diff --git a/posthog/temporal/ai_observability/evaluation_workflow_activities.py b/posthog/temporal/ai_observability/evaluation_workflow_activities.pyindex 6e567fb01f9d..8c92ff37b568 100644--- a/posthog/temporal/ai_observability/evaluation_workflow_activities.py+++ b/posthog/temporal/ai_observability/evaluation_workflow_activities.py@@ -170,6 +170,7 @@ _STATUS_REASON_SUBJECTS = {"provider_key_quota_exceeded": "Your AI observability evaluation was disabled because its provider API key quota was exceeded","provider_key_rate_limited": "Your AI observability evaluation was disabled because its provider API key is being rate limited","model_not_found": "Your AI observability evaluation was disabled because its model was not found",+ "model_not_supported": "Your AI observability evaluation was disabled because its model does not support chat completions","hog_error": "Your AI observability evaluation was disabled because its Hog code failed",}diff --git a/posthog/temporal/ai_observability/test_run_evaluation.py b/posthog/temporal/ai_observability/test_run_evaluation.pyindex c51c185d7ee7..89071a1e5efa 100644--- a/posthog/temporal/ai_observability/test_run_evaluation.py+++ b/posthog/temporal/ai_observability/test_run_evaluation.py@@ -33,6 +33,7 @@ from products.ai_observability.backend.llm.errors import (QuotaExceededError,RateLimitError,StructuredOutputParseError,+ UnsupportedModelError,)from products.ai_observability.backend.models.evaluation_config import EvaluationConfigfrom products.ai_observability.backend.models.evaluation_directories import EvaluationDirectory@@ -2051,6 +2052,13 @@ class TestRunEvaluationWorkflow:None,id="model_not_found",),+ pytest.param(+ UnsupportedModelError("gpt-5.4"),+ "model_not_supported",+ "model_not_supported",+ None,+ id="model_not_supported",+ ),],)@pytest.mark.django_db(transaction=True)diff --git a/products/ai_observability/backend/api/evaluations.py b/products/ai_observability/backend/api/evaluations.pyindex fa05ffbf2fad..958bcedf194a 100644--- a/products/ai_observability/backend/api/evaluations.py+++ b/products/ai_observability/backend/api/evaluations.py@@ -46,6 +46,7 @@ from products.access_control.backend.presentation.access_control import (from ..evaluation_conditions import build_condition_filterfrom ..hog import compile_ai_observability_hogfrom ..llm import DEFAULT_MODEL_BY_PROVIDER+from ..llm.providers.openrouter import is_non_chat_modelfrom ..models.evaluation_config import EvaluationConfigfrom ..models.evaluation_configs import (EVALUATION_TEST_LOOKBACK_DAYS,@@ -579,6 +580,9 @@ class EvaluationSerializer(UserAccessControlSerializerMixin, serializers.ModelSe{"model_configuration": "Select a provider and model for this LLM judge evaluation."})+ if data.get("model_configuration") or data.get("enabled"):+ self._validate_chat_model(data)+should_validate_configs = (self.instance is Noneor "evaluation_type" in data@@ -642,6 +646,21 @@ class EvaluationSerializer(UserAccessControlSerializerMixin, serializers.ModelSereturn data+ def _validate_chat_model(self, data: dict) -> None:+ """The judge calls chat completions, so a model without text output fails on every run."""+ model_config = self._effective_model_configuration(data)+ if not model_config or model_config.get("provider") != LLMProvider.OPENROUTER:+ return+ model = model_config.get("model")+ if model and is_non_chat_model(model):+ raise serializers.ValidationError(+ {+ "model_configuration": (+ f"'{model}' does not support chat completions, so it cannot be an LLM judge. Choose a chat model."+ )+ }+ )+def _validate_can_run(self, data: dict) -> None:"""An eval being turned on — created enabled or re-enabled — must be able to resolve amodel at runtime; otherwise the caller gets a 200/201 and the first Temporal run silentlydiff --git a/products/ai_observability/backend/api/test/test_evaluations.py b/products/ai_observability/backend/api/test/test_evaluations.pyindex b73349fe3607..c84787a2c784 100644--- a/products/ai_observability/backend/api/test/test_evaluations.py+++ b/products/ai_observability/backend/api/test/test_evaluations.py@@ -811,6 +811,29 @@ class TestEvaluationConfigsApi(APIBaseTest):self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)self.assertEqual(response.data["attr"], "model_configuration")+ @parameterized.expand([("decision_model", "typesafe/jev-1.13", 400), ("chat_model", "openai/gpt-4o", 201)])+ def test_llm_judge_creation_rejects_openrouter_non_chat_model(self, _name, model, expected_status):+ with patch(+ "products.ai_observability.backend.llm.providers.openrouter._non_chat_model_ids",+ return_value=frozenset({"typesafe/jev-1.13"}),+ ):+ response = self.client.post(+ f"/api/environments/{self.team.id}/evaluations/",+ {+ "name": "OpenRouter judge",+ "enabled": False,+ "evaluation_type": "llm_judge",+ "evaluation_config": {"prompt": "Test"},+ "output_type": "boolean",+ "model_configuration": {"provider": "openrouter", "model": model},+ },+ format="json",+ )++ self.assertEqual(response.status_code, expected_status, response.json())+ if expected_status == 400:+ self.assertEqual(response.data["attr"], "model_configuration")+@parameterized.expand([("omitted", False), ("null", True)])def test_llm_judge_creation_requires_model_configuration(self, _name, include_null_configuration):payload: dict[str, object] = {@@ -1885,9 +1908,9 @@ class TestReEnableValidatesRootCauseResolved(APIBaseTest):that put it there is resolved — otherwise the next workflow run just re-disables it for thesame reason. Matters for agent callers who can't see a red banner."""- def _create_errored_eval(self, status_reason, model="gpt-5-mini", provider_key=None):+ def _create_errored_eval(self, status_reason, model="gpt-5-mini", provider_key=None, provider="openai"):mc = LLMModelConfiguration.objects.create(- team=self.team, provider="openai", model=model, provider_key=provider_key+ team=self.team, provider=provider, model=model, provider_key=provider_key)eval_obj = Evaluation.objects.create(team=self.team,@@ -2005,6 +2028,34 @@ class TestReEnableValidatesRootCauseResolved(APIBaseTest):self.assertTrue(eval_obj.enabled)self.assertIsNone(eval_obj.status_reason)+ def test_rejects_re_enable_when_model_still_not_supported(self):+ key = LLMProviderKey.objects.create(+ team=self.team,+ provider="openrouter",+ name="Key",+ state=LLMProviderKey.State.OK,+ encrypted_config={"api_key": "sk-or-test"},+ created_by=self.user,+ )+ eval_obj = self._create_errored_eval(+ status_reason="model_not_supported", model="typesafe/jev-1.13", provider_key=key, provider="openrouter"+ )++ with patch(+ "products.ai_observability.backend.llm.providers.openrouter._non_chat_model_ids",+ return_value=frozenset({"typesafe/jev-1.13"}),+ ):+ response = self.client.patch(+ f"/api/environments/{self.team.id}/evaluations/{eval_obj.id}/",+ {"enabled": True},+ format="json",+ )++ self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)+ self.assertEqual(response.data["attr"], "model_configuration")+ eval_obj.refresh_from_db()+ self.assertFalse(eval_obj.enabled)+def test_allows_re_enable_when_model_not_found_with_new_model(self):key = LLMProviderKey.objects.create(team=self.team,diff --git a/products/ai_observability/backend/llm/providers/openrouter.py b/products/ai_observability/backend/llm/providers/openrouter.pyindex 78aaaefc0ffe..d6477bf5bd66 100644--- a/products/ai_observability/backend/llm/providers/openrouter.py+++ b/products/ai_observability/backend/llm/providers/openrouter.py@@ -8,9 +8,12 @@ import loggingfrom collections.abc import Generatorfrom typing import Any+from django.core.cache import cache+import httpximport openai+from products.ai_observability.backend.llm.errors import UnsupportedModelErrorfrom products.ai_observability.backend.llm.providers.openai import OpenAIAdapter, OpenAIConfigfrom products.ai_observability.backend.llm.types import (AnalyticsContext,@@ -29,6 +32,48 @@ OPENROUTER_HEADERS = {"X-Title": "PostHog",}+# The default model list only has text-output models, so ask for every output modality.+OPENROUTER_ALL_MODELS_URL = f"{OPENROUTER_BASE_URL}/models?output_modalities=all"+NON_CHAT_MODELS_CACHE_KEY = "ai_observability:openrouter:non_chat_models"+NON_CHAT_MODELS_CACHE_TTL_SECONDS = 60 * 60+NON_CHAT_MODELS_FETCH_TIMEOUT_SECONDS = 5.0+# Short, so a catalogue outage adds the fetch timeout at most once a minute.+NON_CHAT_MODELS_UNAVAILABLE_TTL_SECONDS = 60+_CATALOGUE_UNAVAILABLE = "unavailable"+++def _non_chat_model_ids() -> frozenset[str] | None:+ """IDs of OpenRouter models that cannot produce text, such as decision models.++ Returns None when the catalogue is unavailable, so callers fail open.+ """+ cached = cache.get(NON_CHAT_MODELS_CACHE_KEY)+ if cached == _CATALOGUE_UNAVAILABLE:+ return None+ if cached is not None:+ return frozenset(cached)+ try:+ response = httpx.get(OPENROUTER_ALL_MODELS_URL, timeout=NON_CHAT_MODELS_FETCH_TIMEOUT_SECONDS)+ response.raise_for_status()+ models = response.json()["data"]+ ids = sorted(+ model["id"]+ for model in models+ if "text" not in (model.get("architecture") or {}).get("output_modalities", ["text"])+ )+ except Exception:+ logger.warning("Could not fetch the OpenRouter model catalogue", exc_info=True)+ cache.set(NON_CHAT_MODELS_CACHE_KEY, _CATALOGUE_UNAVAILABLE, NON_CHAT_MODELS_UNAVAILABLE_TTL_SECONDS)+ return None+ cache.set(NON_CHAT_MODELS_CACHE_KEY, ids, NON_CHAT_MODELS_CACHE_TTL_SECONDS)+ return frozenset(ids)+++def is_non_chat_model(model: str) -> bool:+ """True only when OpenRouter lists the model and says it cannot produce text."""+ ids = _non_chat_model_ids()+ return ids is not None and model in ids+class OpenRouterAdapter(OpenAIAdapter):"""OpenRouter provider that reuses OpenAI's completion/streaming logic."""@@ -45,7 +90,14 @@ class OpenRouterAdapter(OpenAIAdapter):analytics: AnalyticsContext,base_url: str | None = None,) -> CompletionResponse:- return super().complete(request, api_key, analytics, base_url=OPENROUTER_BASE_URL)+ # Read the catalogue only on the failure path, so successful calls pay no extra latency.+ try:+ return super().complete(request, api_key, analytics, base_url=OPENROUTER_BASE_URL)+ except Exception as e:+ # A non-chat model fails in several shapes (a 400, a 404, unreadable output).+ if is_non_chat_model(request.model):+ raise UnsupportedModelError(request.model) from e+ raisedef stream(self,diff --git a/products/ai_observability/backend/llm/providers/test/test_openrouter.py b/products/ai_observability/backend/llm/providers/test/test_openrouter.pyindex 6799813d20e2..211630011f19 100644--- a/products/ai_observability/backend/llm/providers/test/test_openrouter.py+++ b/products/ai_observability/backend/llm/providers/test/test_openrouter.py@@ -1,11 +1,23 @@import pytestfrom unittest.mock import MagicMock, patch+from django.core.cache import cache+import httpxfrom parameterized import parameterized+from products.ai_observability.backend.llm.errors import (+ ModelNotFoundError,+ StructuredOutputParseError,+ UnsupportedModelError,+)from products.ai_observability.backend.llm.providers.openai import OpenAIAdapter-from products.ai_observability.backend.llm.providers.openrouter import OPENROUTER_HEADERS, OpenRouterAdapter+from products.ai_observability.backend.llm.providers.openrouter import (+ NON_CHAT_MODELS_CACHE_KEY,+ OPENROUTER_HEADERS,+ OpenRouterAdapter,+ _non_chat_model_ids,+)class TestOpenRouterValidateKey:@@ -120,3 +132,74 @@ class TestOpenRouterHeaders:mock_constructor.assert_called_once()assert mock_constructor.call_args.kwargs["default_headers"] == OPENROUTER_HEADERS+++class TestOpenRouterNonChatModels:+ @parameterized.expand(+ [+ (+ "not_found_on_decision_model",+ ModelNotFoundError("typesafe/jev-1.13"),+ "typesafe/jev-1.13",+ UnsupportedModelError,+ ),+ (+ "parse_error_on_decision_model",+ StructuredOutputParseError("bad"),+ "typesafe/jev-1.13",+ UnsupportedModelError,+ ),+ ("error_on_chat_model", ModelNotFoundError("openai/gpt-4o"), "openai/gpt-4o", ModelNotFoundError),+ ]+ )+ def test_complete_maps_failures_of_non_chat_models(+ self, _name: str, outcome: Exception, model: str, expected: type[Exception]+ ) -> None:+ request = MagicMock(model=model)+ with (+ patch.object(OpenAIAdapter, "complete", side_effect=outcome),+ patch(+ "products.ai_observability.backend.llm.providers.openrouter._non_chat_model_ids",+ return_value=frozenset({"typesafe/jev-1.13"}),+ ),+ pytest.raises(expected),+ ):+ OpenRouterAdapter().complete(request, "sk-or-test-key", MagicMock())++ def test_successful_complete_skips_the_catalogue(self) -> None:+ with (+ patch.object(OpenAIAdapter, "complete", return_value=MagicMock(parsed=MagicMock())),+ patch("products.ai_observability.backend.llm.providers.openrouter._non_chat_model_ids") as mock_ids,+ ):+ OpenRouterAdapter().complete(MagicMock(model="openai/gpt-4o"), "sk-or-test-key", MagicMock())+ mock_ids.assert_not_called()++ def test_catalogue_keeps_only_models_without_text_output(self) -> None:+ mock_response = MagicMock()+ mock_response.json.return_value = {+ "data": [+ {"id": "openai/gpt-4o", "architecture": {"output_modalities": ["text"]}},+ {"id": "google/image-model", "architecture": {"output_modalities": ["image", "text"]}},+ {"id": "typesafe/jev-1.13", "architecture": {"output_modalities": ["decisions"]}},+ {"id": "no-architecture/model"},+ ]+ }+ with (+ patch("products.ai_observability.backend.llm.providers.openrouter.cache.get", return_value=None),+ patch("products.ai_observability.backend.llm.providers.openrouter.cache.set"),+ patch("products.ai_observability.backend.llm.providers.openrouter.httpx.get", return_value=mock_response),+ ):+ assert _non_chat_model_ids() == frozenset({"typesafe/jev-1.13"})++ def test_catalogue_failure_is_cached_briefly(self) -> None:+ cache.delete(NON_CHAT_MODELS_CACHE_KEY)+ try:+ with patch(+ "products.ai_observability.backend.llm.providers.openrouter.httpx.get",+ side_effect=httpx.ConnectError("down"),+ ) as mock_get:+ assert _non_chat_model_ids() is None+ assert _non_chat_model_ids() is None+ assert mock_get.call_count == 1+ finally:+ cache.delete(NON_CHAT_MODELS_CACHE_KEY)diff --git a/products/ai_observability/backend/models/evaluations.py b/products/ai_observability/backend/models/evaluations.pyindex 8a479ad74242..0baab02b4f5e 100644--- a/products/ai_observability/backend/models/evaluations.py+++ b/products/ai_observability/backend/models/evaluations.py@@ -40,6 +40,7 @@ class EvaluationStatusReason(models.TextChoices):PROVIDER_KEY_QUOTA_EXCEEDED = "provider_key_quota_exceeded", "Provider API key quota exceeded"PROVIDER_KEY_RATE_LIMITED = "provider_key_rate_limited", "Provider API key is rate limited"MODEL_NOT_FOUND = "model_not_found", "Model not found"+ MODEL_NOT_SUPPORTED = "model_not_supported", "Model does not support chat completions"HOG_ERROR = "hog_error", "Hog evaluation code failed"diff --git a/products/ai_observability/frontend/evaluations/statusDisplay.test.ts b/products/ai_observability/frontend/evaluations/statusDisplay.test.tsindex b6f93a54ac3e..afb43c10a8b4 100644--- a/products/ai_observability/frontend/evaluations/statusDisplay.test.ts+++ b/products/ai_observability/frontend/evaluations/statusDisplay.test.ts@@ -11,6 +11,7 @@ describe('statusDisplay', () => {['provider_key_quota_exceeded' as const, 'Provider API key quota exceeded'],['provider_key_rate_limited' as const, 'Provider API key is rate limited'],['model_not_found' as const, 'Model not found'],+ ['model_not_supported' as const, 'Model does not support chat completions'],['hog_error' as const, 'Hog evaluation code failed'],])('maps %s to user-facing copy', (reason, expected) => {expect(statusReasonLabel(reason)).toBe(expected)@@ -53,6 +54,7 @@ describe('statusDisplay', () => {'Choose an available model, then re-enable the evaluation to resume running.',],['model_not_found' as const, 'Choose an available model, then re-enable the evaluation to resume running.'],+ ['model_not_supported' as const, 'Choose a chat model, then re-enable the evaluation to resume running.'],['hog_error' as const, 'Fix the Hog code, then re-enable the evaluation to resume running.'],])('maps %s to recovery copy', (reason, expected) => {expect(statusReasonRecoveryLabel(reason)).toBe(expected)diff --git a/products/ai_observability/frontend/evaluations/statusDisplay.ts b/products/ai_observability/frontend/evaluations/statusDisplay.tsindex b57c8cb7e1ee..e8a141eb88e6 100644--- a/products/ai_observability/frontend/evaluations/statusDisplay.ts+++ b/products/ai_observability/frontend/evaluations/statusDisplay.ts@@ -9,6 +9,7 @@ const REASON_LABELS: Record<EvaluationStatusReason, string> = {provider_key_quota_exceeded: 'Provider API key quota exceeded',provider_key_rate_limited: 'Provider API key is rate limited',model_not_found: 'Model not found',+ model_not_supported: 'Model does not support chat completions',hog_error: 'Hog evaluation code failed',}@@ -34,6 +35,9 @@ export function statusReasonRecoveryLabel(reason: EvaluationStatusReason | nullif (reason === 'no_default_model' || reason === 'model_not_found') {return 'Choose an available model, then re-enable the evaluation to resume running.'}+ if (reason === 'model_not_supported') {+ return 'Choose a chat model, then re-enable the evaluation to resume running.'+ }if (reason === 'hog_error') {return 'Fix the Hog code, then re-enable the evaluation to resume running.'}diff --git a/products/ai_observability/frontend/evaluations/types.ts b/products/ai_observability/frontend/evaluations/types.tsindex 83774fb3b87d..c41828fb9889 100644--- a/products/ai_observability/frontend/evaluations/types.ts+++ b/products/ai_observability/frontend/evaluations/types.ts@@ -24,6 +24,7 @@ export type EvaluationStatusReason =| 'provider_key_quota_exceeded'| 'provider_key_rate_limited'| 'model_not_found'+ | 'model_not_supported'| 'hog_error'export interface ModelConfiguration {diff --git a/products/ai_observability/frontend/generated/api.schemas.ts b/products/ai_observability/frontend/generated/api.schemas.tsindex 292a04ba47c9..2310cc6b761c 100644--- a/products/ai_observability/frontend/generated/api.schemas.ts+++ b/products/ai_observability/frontend/generated/api.schemas.ts@@ -1701,6 +1701,7 @@ export const EvaluationStatusEnumApi = {* * `provider_key_quota_exceeded` - Provider API key quota exceeded* * `provider_key_rate_limited` - Provider API key is rate limited* * `model_not_found` - Model not found+ * * `model_not_supported` - Model does not support chat completions* * `hog_error` - Hog evaluation code failed*/export type EvaluationStatusReasonEnumApi =@@ -1715,6 +1716,7 @@ export const EvaluationStatusReasonEnumApi = {ProviderKeyQuotaExceeded: 'provider_key_quota_exceeded',ProviderKeyRateLimited: 'provider_key_rate_limited',ModelNotFound: 'model_not_found',+ ModelNotSupported: 'model_not_supported',HogError: 'hog_error',} as constdiff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex a7a726dfb257..3067675c8796 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -38696,6 +38696,7 @@ export namespace Schemas {* * `provider_key_quota_exceeded` - Provider API key quota exceeded* * `provider_key_rate_limited` - Provider API key is rate limited* * `model_not_found` - Model not found+ * * `model_not_supported` - Model does not support chat completions* * `hog_error` - Hog evaluation code failed*/export type EvaluationStatusReasonEnum = typeof EvaluationStatusReasonEnum[keyof typeof EvaluationStatusReasonEnum];@@ -38710,6 +38711,7 @@ export namespace Schemas {ProviderKeyQuotaExceeded: 'provider_key_quota_exceeded',ProviderKeyRateLimited: 'provider_key_rate_limited',ModelNotFound: 'model_not_found',+ ModelNotSupported: 'model_not_supported',HogError: 'hog_error',} as const;