Circle V2 API Docs
    Preparing search index...

    Function createChartReviewChatModel

    • Constructs the ChatOpenAI instance that powers a chart-review run.

      The values mirror v1's circlehealthai-web/app/api/chart-review/run-v2/route.ts verbatim (gpt-4.1, temperature 0.1, no streaming, 3 retries). maxTokens is sourced from the resolved ChartReviewSettings so LD overrides flow through.

      Lives here (rather than in the trpc handler) so the @langchain/openai dependency stays confined to @repo/legacy.

      Parameters

      Returns ChatOpenAI