Skip to content

Commit 742e8b8

Browse files
fix(growth): type the drafter's fallback route as a gateway product
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 2ce0637 commit 742e8b8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • products/posthog_ai/backend/turn_suggestions

‎products/posthog_ai/backend/turn_suggestions/drafter.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from openai.types.shared_params import ResponseFormatJSONSchema
1414
from pydantic import BaseModel, ConfigDict, ValidationError
1515

16-
from posthog.llm.gateway_client import build_openai_client, team_distinct_id
16+
from posthog.llm.gateway_client import Product, build_openai_client, team_distinct_id
1717
from posthog.llm.semantic_enrichment import extract_json_object
1818

1919
from products.posthog_ai.backend.turn_suggestions.transcript import TurnTranscript, truncate_text
@@ -32,7 +32,7 @@
3232

3333
# PostHog pays for drafts, not the customer's AI credits. The Go gateway bills the wallet of the team
3434
# that owns its key, and the Python fallback route is one that bills no credit bucket.
35-
DRAFT_FALLBACK_PRODUCT = "growth"
35+
DRAFT_FALLBACK_PRODUCT: Product = "growth"
3636
DRAFT_AI_PRODUCT = "posthog_ai_turn_suggestions"
3737

3838
# A reasoning model spends the same token budget on its thinking and on the reply, and the reply

0 commit comments

Comments
 (0)