langfun 0.1.2.dev202409280804__py3-none-any.whl → 0.1.2.dev202409290804__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- langfun/core/llms/vertexai.py +37 -12
- {langfun-0.1.2.dev202409280804.dist-info → langfun-0.1.2.dev202409290804.dist-info}/METADATA +1 -1
- {langfun-0.1.2.dev202409280804.dist-info → langfun-0.1.2.dev202409290804.dist-info}/RECORD +6 -6
- {langfun-0.1.2.dev202409280804.dist-info → langfun-0.1.2.dev202409290804.dist-info}/LICENSE +0 -0
- {langfun-0.1.2.dev202409280804.dist-info → langfun-0.1.2.dev202409290804.dist-info}/WHEEL +0 -0
- {langfun-0.1.2.dev202409280804.dist-info → langfun-0.1.2.dev202409290804.dist-info}/top_level.txt +0 -0
langfun/core/llms/vertexai.py
CHANGED
@@ -418,8 +418,11 @@ _VIDEO_TYPES = [
|
|
418
418
|
'video/3gpp',
|
419
419
|
]
|
420
420
|
|
421
|
-
|
421
|
+
_DOCUMENT_TYPES = [
|
422
422
|
'application/pdf',
|
423
|
+
'text/plain',
|
424
|
+
'text/csv',
|
425
|
+
'text/html',
|
423
426
|
]
|
424
427
|
|
425
428
|
|
@@ -427,75 +430,97 @@ class VertexAIGeminiPro1_5_Latest(VertexAI): # pylint: disable=invalid-name
|
|
427
430
|
"""Vertex AI Gemini 1.5 Pro model."""
|
428
431
|
|
429
432
|
model = 'gemini-1.5-pro-latest'
|
430
|
-
supported_modalities =
|
433
|
+
supported_modalities = (
|
434
|
+
_DOCUMENT_TYPES + _IMAGE_TYPES + _AUDIO_TYPES + _VIDEO_TYPES
|
435
|
+
)
|
431
436
|
|
432
437
|
|
433
438
|
class VertexAIGeminiPro1_5(VertexAI): # pylint: disable=invalid-name
|
434
439
|
"""Vertex AI Gemini 1.5 Pro model."""
|
435
440
|
|
436
441
|
model = 'gemini-1.5-pro'
|
437
|
-
supported_modalities =
|
442
|
+
supported_modalities = (
|
443
|
+
_DOCUMENT_TYPES + _IMAGE_TYPES + _AUDIO_TYPES + _VIDEO_TYPES
|
444
|
+
)
|
438
445
|
|
439
446
|
|
440
447
|
class VertexAIGeminiPro1_5_002(VertexAI): # pylint: disable=invalid-name
|
441
448
|
"""Vertex AI Gemini 1.5 Pro model."""
|
442
449
|
|
443
450
|
model = 'gemini-1.5-pro-002'
|
444
|
-
supported_modalities =
|
451
|
+
supported_modalities = (
|
452
|
+
_DOCUMENT_TYPES + _IMAGE_TYPES + _AUDIO_TYPES + _VIDEO_TYPES
|
453
|
+
)
|
445
454
|
|
446
455
|
|
447
456
|
class VertexAIGeminiPro1_5_001(VertexAI): # pylint: disable=invalid-name
|
448
457
|
"""Vertex AI Gemini 1.5 Pro model."""
|
449
458
|
|
450
459
|
model = 'gemini-1.5-pro-001'
|
451
|
-
supported_modalities =
|
460
|
+
supported_modalities = (
|
461
|
+
_DOCUMENT_TYPES + _IMAGE_TYPES + _AUDIO_TYPES + _VIDEO_TYPES
|
462
|
+
)
|
452
463
|
|
453
464
|
|
454
465
|
class VertexAIGeminiPro1_5_0514(VertexAI): # pylint: disable=invalid-name
|
455
466
|
"""Vertex AI Gemini 1.5 Pro preview model."""
|
456
467
|
|
457
468
|
model = 'gemini-1.5-pro-preview-0514'
|
458
|
-
supported_modalities =
|
469
|
+
supported_modalities = (
|
470
|
+
_DOCUMENT_TYPES + _IMAGE_TYPES + _AUDIO_TYPES + _VIDEO_TYPES
|
471
|
+
)
|
459
472
|
|
460
473
|
|
461
474
|
class VertexAIGeminiPro1_5_0409(VertexAI): # pylint: disable=invalid-name
|
462
475
|
"""Vertex AI Gemini 1.5 Pro preview model."""
|
463
476
|
|
464
477
|
model = 'gemini-1.5-pro-preview-0409'
|
465
|
-
supported_modalities =
|
478
|
+
supported_modalities = (
|
479
|
+
_DOCUMENT_TYPES + _IMAGE_TYPES + _AUDIO_TYPES + _VIDEO_TYPES
|
480
|
+
)
|
466
481
|
|
467
482
|
|
468
483
|
class VertexAIGeminiFlash1_5_Latest(VertexAI): # pylint: disable=invalid-name
|
469
484
|
"""Vertex AI Gemini 1.5 Flash model."""
|
470
485
|
|
471
486
|
model = 'gemini-1.5-flash-latest'
|
472
|
-
supported_modalities =
|
487
|
+
supported_modalities = (
|
488
|
+
_DOCUMENT_TYPES + _IMAGE_TYPES + _AUDIO_TYPES + _VIDEO_TYPES
|
489
|
+
)
|
473
490
|
|
474
491
|
|
475
492
|
class VertexAIGeminiFlash1_5(VertexAI): # pylint: disable=invalid-name
|
476
493
|
"""Vertex AI Gemini 1.5 Flash model."""
|
477
494
|
model = 'gemini-1.5-flash'
|
478
|
-
supported_modalities =
|
495
|
+
supported_modalities = (
|
496
|
+
_DOCUMENT_TYPES + _IMAGE_TYPES + _AUDIO_TYPES + _VIDEO_TYPES
|
497
|
+
)
|
479
498
|
|
480
499
|
|
481
500
|
class VertexAIGeminiFlash1_5_002(VertexAI): # pylint: disable=invalid-name
|
482
501
|
"""Vertex AI Gemini 1.5 Flash model."""
|
483
502
|
|
484
503
|
model = 'gemini-1.5-flash-002'
|
485
|
-
supported_modalities =
|
504
|
+
supported_modalities = (
|
505
|
+
_DOCUMENT_TYPES + _IMAGE_TYPES + _AUDIO_TYPES + _VIDEO_TYPES
|
506
|
+
)
|
486
507
|
|
487
508
|
|
488
509
|
class VertexAIGeminiFlash1_5_001(VertexAI): # pylint: disable=invalid-name
|
489
510
|
"""Vertex AI Gemini 1.5 Flash model."""
|
490
511
|
model = 'gemini-1.5-flash-001'
|
491
|
-
supported_modalities =
|
512
|
+
supported_modalities = (
|
513
|
+
_DOCUMENT_TYPES + _IMAGE_TYPES + _AUDIO_TYPES + _VIDEO_TYPES
|
514
|
+
)
|
492
515
|
|
493
516
|
|
494
517
|
class VertexAIGeminiFlash1_5_0514(VertexAI): # pylint: disable=invalid-name
|
495
518
|
"""Vertex AI Gemini 1.5 Flash preview model."""
|
496
519
|
|
497
520
|
model = 'gemini-1.5-flash-preview-0514'
|
498
|
-
supported_modalities =
|
521
|
+
supported_modalities = (
|
522
|
+
_DOCUMENT_TYPES + _IMAGE_TYPES + _AUDIO_TYPES + _VIDEO_TYPES
|
523
|
+
)
|
499
524
|
|
500
525
|
|
501
526
|
class VertexAIGeminiPro1(VertexAI): # pylint: disable=invalid-name
|
@@ -67,7 +67,7 @@ langfun/core/llms/openai.py,sha256=vnDrKuD-pli0AtDIDq_TmlltOk7z7_PQ-xpU4K1ARdU,1
|
|
67
67
|
langfun/core/llms/openai_test.py,sha256=UcBFW_7RkkMEo47Tn5RuVRK_DryTN7bb9ITphlzthE8,17762
|
68
68
|
langfun/core/llms/rest.py,sha256=laopuq-zD8V-3Y6eFDngftHEbE66VlUkCD2-rvvRaLU,3388
|
69
69
|
langfun/core/llms/rest_test.py,sha256=NZ3Nf0XQVpT9kLP5cBVo_yBHLI7vWTYhWQxYEJVMGs4,3472
|
70
|
-
langfun/core/llms/vertexai.py,sha256=
|
70
|
+
langfun/core/llms/vertexai.py,sha256=7f1O-G_0yG57QBwfPxVFrDvDBdug2chOX3yKpdsH1XQ,17191
|
71
71
|
langfun/core/llms/vertexai_test.py,sha256=EPR-mB2hNUpvpf7E8m_k5bh04epdQTVUuYU6hPgZyu8,10321
|
72
72
|
langfun/core/llms/cache/__init__.py,sha256=QAo3InUMDM_YpteNnVCSejI4zOsnjSMWKJKzkb3VY64,993
|
73
73
|
langfun/core/llms/cache/base.py,sha256=rt3zwmyw0y9jsSGW-ZbV1vAfLxQ7_3AVk0l2EySlse4,3918
|
@@ -119,8 +119,8 @@ langfun/core/templates/demonstration.py,sha256=vCrgYubdZM5Umqcgp8NUVGXgr4P_c-fik
|
|
119
119
|
langfun/core/templates/demonstration_test.py,sha256=SafcDQ0WgI7pw05EmPI2S4v1t3ABKzup8jReCljHeK4,2162
|
120
120
|
langfun/core/templates/selfplay.py,sha256=yhgrJbiYwq47TgzThmHrDQTF4nDrTI09CWGhuQPNv-s,2273
|
121
121
|
langfun/core/templates/selfplay_test.py,sha256=rBW2Qr8yi-aWYwoTwRR-n1peKyMX9QXPZXURjLgoiRs,2264
|
122
|
-
langfun-0.1.2.
|
123
|
-
langfun-0.1.2.
|
124
|
-
langfun-0.1.2.
|
125
|
-
langfun-0.1.2.
|
126
|
-
langfun-0.1.2.
|
122
|
+
langfun-0.1.2.dev202409290804.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
123
|
+
langfun-0.1.2.dev202409290804.dist-info/METADATA,sha256=CGI7zdw2BGh-WiXv9dNXy7lyVxnCnOBewo77nW8kRkk,8890
|
124
|
+
langfun-0.1.2.dev202409290804.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
125
|
+
langfun-0.1.2.dev202409290804.dist-info/top_level.txt,sha256=RhlEkHxs1qtzmmtWSwYoLVJAc1YrbPtxQ52uh8Z9VvY,8
|
126
|
+
langfun-0.1.2.dev202409290804.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{langfun-0.1.2.dev202409280804.dist-info → langfun-0.1.2.dev202409290804.dist-info}/top_level.txt
RENAMED
File without changes
|