Commit 77b4880
feat(vertexai)!: Vertex AI in Firebase is now Generally Available (GA) and can be used in production apps. (#13453)
* chore(vertexai): fork vertexai sdk away from generative ai sdk. (#13298)
* fix the sdk name and support platform
* forking off model and chat class
* fork api class
* remove some export content since the next vertexai release will be breaking change.
* fork function calling
* fork off content
* fix for analyzer
* more analyzer fix
* chore(vertexai): Add corresponding unit test for the fork (#13324)
* Add corresponding unit test for the fork
* fix issues from analyzer
* feat(vertexai): add json schema support and update schema structure (#13378)
* Add schema support for prompt response
* update schema object, replace requiredProperties to optionalProperties
* api updates (breaking)
* more tweak during api review
* Add format for Schema.string
* fix test files
* Update packages/firebase_vertexai/firebase_vertexai/lib/src/vertex_api.dart
Co-authored-by: Nate Bosch <[email protected]>
* add review feedback
---------
Co-authored-by: Nate Bosch <[email protected]>
* feat(vertexai): update function calling and sample (#13395)
* Add schema support for prompt response
* update schema object, replace requiredProperties to optionalProperties
* api updates (breaking)
* more tweak during api review
* Add format for Schema.string
* fix test files
* first sample update
* remove embedding
* api update for function calling
* Update sample code to match the new api
* more code snippet for toolconfig
* apply documentation update
* tweak of the tools
* remove embed related class
* Update packages/firebase_vertexai/firebase_vertexai/example/lib/main.dart
Co-authored-by: Nate Bosch <[email protected]>
* Update packages/firebase_vertexai/firebase_vertexai/example/lib/main.dart
Co-authored-by: Nate Bosch <[email protected]>
* address review comments
* more fix
* keep name consistency
* keep using getWeather to keep align with devsite documentation
* Update the static name
---------
Co-authored-by: Nate Bosch <[email protected]>
* feat(vertexai): update enums and citation and DataPart (#13410)
* Update SafeRating
* Rename citation source
* add blocked for SafetyRating parse
* Rename DataPart to InlineDataPart
* Update readme
* apply review comment
* feat(vertexai): Error message for service api not enabled. (#13435)
* Error message for service api not enabled.
* add quota exceed test
* Apply suggestions from code review
Co-authored-by: Nate Bosch <[email protected]>
* Update for review comments
---------
Co-authored-by: Nate Bosch <[email protected]>
* chore(vertexai): remove vertex_ file name for most of files (#13439)
* remove vertex_ file name for most of files
* organize import
* fix the optional attributes while parsing SafetyRating (#13452)
* chore(vertexai): function calling sample update (#13492)
* fix the optional attributes while parsing SafetyRating
* add doc comments
* update function sample
* comments
* Shorten lines over 80 columns (#13493)
Reflow comments and break long strings into adjacent string literals.
---------
Co-authored-by: Nate Bosch <[email protected]>1 parent f010b46 commit 77b4880
File tree
29 files changed
+3321
-1362
lines changed- packages
- firebase_app_check/firebase_app_check_web
- firebase_vertexai/firebase_vertexai
- example
- lib
- lib
- src
- utils
- test
- utils
29 files changed
+3321
-1362
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1926 | 1926 | | |
1927 | 1927 | | |
1928 | 1928 | | |
1929 | | - | |
| 1929 | + | |
1930 | 1930 | | |
1931 | 1931 | | |
1932 | 1932 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Lines changed: 149 additions & 60 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
140 | 154 | | |
141 | 155 | | |
142 | 156 | | |
| |||
274 | 288 | | |
275 | 289 | | |
276 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
277 | 305 | | |
278 | 306 | | |
279 | 307 | | |
| |||
304 | 332 | | |
305 | 333 | | |
306 | 334 | | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
307 | 380 | | |
308 | 381 | | |
309 | 382 | | |
| |||
358 | 431 | | |
359 | 432 | | |
360 | 433 | | |
361 | | - | |
362 | | - | |
| 434 | + | |
| 435 | + | |
363 | 436 | | |
364 | 437 | | |
365 | 438 | | |
| |||
444 | 517 | | |
445 | 518 | | |
446 | 519 | | |
447 | | - | |
448 | | - | |
| 520 | + | |
| 521 | + | |
449 | 522 | | |
450 | 523 | | |
451 | | - | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
452 | 527 | | |
453 | 528 | | |
454 | 529 | | |
455 | 530 | | |
456 | 531 | | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
470 | 549 | | |
471 | 550 | | |
472 | 551 | | |
| |||
483 | 562 | | |
484 | 563 | | |
485 | 564 | | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
491 | 580 | | |
492 | 581 | | |
493 | 582 | | |
| |||
Lines changed: 18 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 17 | | |
25 | 18 | | |
26 | 19 | | |
27 | | - | |
28 | | - | |
| 20 | + | |
29 | 21 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 22 | | |
35 | 23 | | |
36 | 24 | | |
| |||
41 | 29 | | |
42 | 30 | | |
43 | 31 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
50 | 35 | | |
51 | 36 | | |
52 | | - | |
| 37 | + | |
53 | 38 | | |
54 | 39 | | |
55 | 40 | | |
56 | 41 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
61 | 52 | | |
62 | 53 | | |
63 | 54 | | |
64 | 55 | | |
65 | | - | |
66 | | - | |
67 | 56 | | |
68 | 57 | | |
69 | | - | |
| 58 | + | |
| 59 | + | |
0 commit comments