Skip to content

Commit

Permalink
Fix type check
Browse files Browse the repository at this point in the history
  • Loading branch information
benmvp committed Jul 15, 2024
1 parent 9ef8493 commit 70fa442
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/ai/gemini/transformers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
isFunctionCallMessage,
isFunctionResponse,
} from '../../utils'
import { MatchedItems } from '@/app/items/types'

/**
* Transform the function declarations to the function tools used during the chat
Expand Down Expand Up @@ -171,7 +172,7 @@ const fromFunctionResponseContent = (
return functionResponse
? {
name: functionResponse.name,
content: functionResponse.response,
content: functionResponse.response as MatchedItems,
id: '',
type: 'functionResponse',
}
Expand Down

0 comments on commit 70fa442

Please sign in to comment.