diff --git a/.changeset/calm-teachers-rescue.md b/.changeset/calm-teachers-rescue.md new file mode 100644 index 00000000..c77cc7b7 --- /dev/null +++ b/.changeset/calm-teachers-rescue.md @@ -0,0 +1,5 @@ +--- +"@browserbasehq/stagehand": patch +--- + +Unified LLM input/output types for reduced dependence on OpenAI types diff --git a/lib/inference.ts b/lib/inference.ts index 2aa23c5c..0bb08f14 100644 --- a/lib/inference.ts +++ b/lib/inference.ts @@ -174,6 +174,7 @@ export async function extract({ }) { type ExtractionResponse = z.infer; type MetadataResponse = z.infer; + // TODO: antipattern const isUsingAnthropic = llmClient.type === "anthropic"; const extractionResponse = await llmClient.createChatCompletion({