File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export async function GET(req: NextRequest) {
2020 try {
2121 const apiKey = getRandomKey ( geminiApiKey )
2222 const apiBaseUrl = geminiApiBaseUrl || 'https://generativelanguage.googleapis.com'
23- const response = await fetch ( `${ apiBaseUrl } /v1beta/models?key=${ apiKey } ` )
23+ const response = await fetch ( `${ apiBaseUrl } /v1beta/models?key=${ apiKey } ` , { next : { revalidate : 60 } } )
2424 const result = await response . json ( )
2525 return NextResponse . json ( result )
2626 } catch ( error ) {
Original file line number Diff line number Diff line change 11{
22 "name" : " gemini-next-chat" ,
3- "version" : " 1.10.2 " ,
3+ "version" : " 1.10.3 " ,
44 "private" : true ,
55 "author" : " Amery2010 <amery@xiangfa.org>" ,
66 "license" : " MIT" ,
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export function getSafetySettings(level: string) {
6565}
6666
6767function canUseSearchAsTool ( model : string ) {
68- if ( model . startsWith ( 'gemini-2.5-pro' ) ) return true
68+ if ( model . startsWith ( 'gemini-2.5-pro' ) || model . startsWith ( 'gemini-2.5-flash' ) ) return true
6969 return (
7070 model . startsWith ( 'gemini-2.0' ) && ! model . includes ( 'lite' ) && ! model . includes ( 'thinking' ) && ! model . includes ( 'image' )
7171 )
You can’t perform that action at this time.
0 commit comments