File tree Expand file tree Collapse file tree
products/posthog_ai/backend/turn_suggestions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313from openai .types .shared_params import ResponseFormatJSONSchema
1414from 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
1717from posthog .llm .semantic_enrichment import extract_json_object
1818
1919from products .posthog_ai .backend .turn_suggestions .transcript import TurnTranscript , truncate_text
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"
3636DRAFT_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
You can’t perform that action at this time.
0 commit comments