Commit 3619b29
authored
feat: support gemini-3.x models in loader and update default model to gemini-3.5-flash (#17557)
** STILL IN CLEAN UP STAGE"
- Updated the default model in BQML `GeminiTextGenerator` to
`gemini-3.5-flash` (instead of `gemini-2.5-pro`).
- Registered `gemini-3.1-flash-lite` and `gemini-3.5-flash` endpoints in
BQML model loader to prevent `KeyError` during model loading.
- Updated all related docstrings, deprecation notes, warnings, and tests
to align with the new defaults.
- Updated Gemini model references across all sample notebooks to
`gemini-3.5-flash` and fixed notebook formatting syntax to pass
pre-commit checks.
Fixes #<519302924> 🦕1 parent 17bef41 commit 3619b29
32 files changed
Lines changed: 3770 additions & 3728 deletions
File tree
- packages/bigframes
- bigframes
- bigquery/_operations
- ml
- operations
- notebooks
- apps
- generative_ai
- getting_started
- kaggle
- multimodal
- tests
- system
- large
- bigquery
- ml
- operations
- load
- small/bigquery
- unit/core/compile/sqlglot/expressions
- snapshots/test_ai_ops
- test_ai_classify_with_params
- test_ai_generate_bool_with_connection_id
- test_ai_generate_bool
- test_ai_generate_double_with_connection_id
- test_ai_generate_double
- test_ai_generate_int_with_connection_id
- test_ai_generate_int
- test_ai_generate_with_connection_id
- test_ai_generate_with_output_schema
- test_ai_generate
- test_ai_if_with_endpoint
- test_ai_score_with_endpoint_and_max_error_ratio
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
| 329 | + | |
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
| |||
809 | 809 | | |
810 | 810 | | |
811 | 811 | | |
812 | | - | |
| 812 | + | |
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
| |||
960 | 960 | | |
961 | 961 | | |
962 | 962 | | |
963 | | - | |
| 963 | + | |
964 | 964 | | |
965 | 965 | | |
966 | 966 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| 78 | + | |
| 79 | + | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
| |||
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
| 103 | + | |
| 104 | + | |
99 | 105 | | |
100 | 106 | | |
101 | 107 | | |
| |||
431 | 437 | | |
432 | 438 | | |
433 | 439 | | |
434 | | - | |
| 440 | + | |
435 | 441 | | |
436 | 442 | | |
437 | | - | |
| 443 | + | |
438 | 444 | | |
439 | 445 | | |
440 | 446 | | |
441 | 447 | | |
442 | 448 | | |
443 | | - | |
444 | | - | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
445 | 452 | | |
446 | 453 | | |
447 | 454 | | |
448 | | - | |
| 455 | + | |
449 | 456 | | |
450 | 457 | | |
451 | 458 | | |
| |||
478 | 485 | | |
479 | 486 | | |
480 | 487 | | |
| 488 | + | |
| 489 | + | |
481 | 490 | | |
482 | 491 | | |
483 | 492 | | |
| |||
496 | 505 | | |
497 | 506 | | |
498 | 507 | | |
499 | | - | |
| 508 | + | |
500 | 509 | | |
501 | 510 | | |
502 | 511 | | |
| |||
522 | 531 | | |
523 | 532 | | |
524 | 533 | | |
525 | | - | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
526 | 541 | | |
527 | 542 | | |
528 | 543 | | |
529 | | - | |
| 544 | + | |
530 | 545 | | |
531 | 546 | | |
532 | 547 | | |
533 | | - | |
| 548 | + | |
534 | 549 | | |
535 | 550 | | |
536 | 551 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
446 | | - | |
| 446 | + | |
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
568 | | - | |
| 568 | + | |
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
| |||
805 | 805 | | |
806 | 806 | | |
807 | 807 | | |
808 | | - | |
| 808 | + | |
809 | 809 | | |
810 | 810 | | |
811 | 811 | | |
| |||
0 commit comments