Skip to content

Commit

Permalink
fix: remove experimental metadata handling to fix build
Browse files Browse the repository at this point in the history
Co-Authored-By: ben <ben@prologe.io>
  • Loading branch information
devin-ai-integration[bot] and benjaminshafii committed Dec 23, 2024
1 parent e409019 commit 1ed5fc7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions web/app/api/(newai)/chat/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ export async function POST(req: NextRequest) {
),
maxSteps: 3,
messages: convertToCoreMessages(messages),
onMetadata: isGeminiModel ? (metadata) => {
const geminiMetadata = metadata?.google as GoogleGenerativeAIProviderMetadata | undefined;
if (geminiMetadata?.groundingMetadata) {
console.log("Search grounding metadata:", geminiMetadata.groundingMetadata);
}
} : undefined,
tools: {
getSearchQuery: {
description: "Extract queries to search for notes",
Expand Down

0 comments on commit 1ed5fc7

Please sign in to comment.