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.
Constructs the
ChatOpenAIinstance that powers a chart-review run.The values mirror v1's
circlehealthai-web/app/api/chart-review/run-v2/route.tsverbatim (gpt-4.1, temperature 0.1, no streaming, 3 retries).maxTokensis sourced from the resolvedChartReviewSettingsso LD overrides flow through.Lives here (rather than in the trpc handler) so the
@langchain/openaidependency stays confined to@repo/legacy.