@@ -10,3 +10,41 @@ describe.each([
1010 expect ( model . cacheWritesPrice ) . toBe ( 0.5 )
1111 } )
1212} )
13+
14+ describe . each ( [
15+ [ "gemini-3.5-flash-lite" , geminiModels [ "gemini-3.5-flash-lite" ] ] ,
16+ [ "gemini-3.1-flash-lite" , geminiModels [ "gemini-3.1-flash-lite" ] ] ,
17+ ] ) ( "Gemini 3.x Flash Lite model %s" , ( _modelId , model ) => {
18+ it ( "is registered with the documented limits and multimodal support" , ( ) => {
19+ expect ( model . maxTokens ) . toBe ( 65_536 )
20+ expect ( model . contextWindow ) . toBe ( 1_048_576 )
21+ expect ( model . supportsImages ) . toBe ( true )
22+ expect ( model . supportsPromptCache ) . toBe ( true )
23+ expect ( model . supportsReasoningBudget ) . toBe ( false )
24+ } )
25+ } )
26+
27+ it ( "exposes the documented thinking levels and pricing for Gemini 3.5 Flash Lite" , ( ) => {
28+ const model = geminiModels [ "gemini-3.5-flash-lite" ]
29+ expect ( model . supportsReasoningEffort ) . toEqual ( [ "minimal" , "low" , "medium" , "high" ] )
30+ // The documented API default is On (minimal):
31+ // https://ai.google.dev/gemini-api/docs/thinking
32+ expect ( model . reasoningEffort ) . toBe ( "minimal" )
33+ expect ( model . inputPrice ) . toBe ( 0.3 )
34+ expect ( model . outputPrice ) . toBe ( 2.5 )
35+ expect ( model . cacheReadsPrice ) . toBe ( 0.03 )
36+ expect ( model . cacheWritesPrice ) . toBe ( 1.0 )
37+ } )
38+
39+ it ( "exposes the documented thinking levels and pricing for Gemini 3.1 Flash Lite" , ( ) => {
40+ const model = geminiModels [ "gemini-3.1-flash-lite" ]
41+ // https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/gemini/3-1-flash-lite
42+ // "choosing from minimal, low, medium, or high thinking levels"
43+ expect ( model . supportsReasoningEffort ) . toEqual ( [ "minimal" , "low" , "medium" , "high" ] )
44+ // Lowest supported level, matching the cheap/free Flash Lite tier.
45+ expect ( model . reasoningEffort ) . toBe ( "minimal" )
46+ expect ( model . inputPrice ) . toBe ( 0.25 )
47+ expect ( model . outputPrice ) . toBe ( 1.5 )
48+ expect ( model . cacheReadsPrice ) . toBe ( 0.025 )
49+ expect ( model . cacheWritesPrice ) . toBe ( 1.0 )
50+ } )
0 commit comments