Skip to content

Commit

Permalink
Merge branch 'sameel/refactor-llm-types' into vercel-ai-sdk-impl
Browse files Browse the repository at this point in the history
  • Loading branch information
sameelarif committed Jan 7, 2025
2 parents 587871f + 247a844 commit c24246a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-teachers-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@browserbasehq/stagehand": patch
---

Unified LLM input/output types for reduced dependence on OpenAI types
1 change: 1 addition & 0 deletions lib/inference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ export async function extract({
}) {
type ExtractionResponse = z.infer<typeof schema>;
type MetadataResponse = z.infer<typeof metadataSchema>;
// TODO: antipattern
const isUsingAnthropic = llmClient.type === "anthropic";

const extractionResponse = await llmClient.createChatCompletion({
Expand Down

0 comments on commit c24246a

Please sign in to comment.