langchain-google-genai 2.0.6__py3-none-any.whl → 2.0.7__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.
Potentially problematic release.
This version of langchain-google-genai might be problematic. Click here for more details.
- langchain_google_genai/_function_utils.py +0 -2
- langchain_google_genai/chat_models.py +8 -4
- langchain_google_genai/embeddings.py +3 -3
- {langchain_google_genai-2.0.6.dist-info → langchain_google_genai-2.0.7.dist-info}/METADATA +1 -1
- {langchain_google_genai-2.0.6.dist-info → langchain_google_genai-2.0.7.dist-info}/RECORD +7 -7
- {langchain_google_genai-2.0.6.dist-info → langchain_google_genai-2.0.7.dist-info}/LICENSE +0 -0
- {langchain_google_genai-2.0.6.dist-info → langchain_google_genai-2.0.7.dist-info}/WHEEL +0 -0
|
@@ -342,8 +342,6 @@ def _get_items_from_schema(schema: Union[Dict, List, str]) -> Dict[str, Any]:
|
|
|
342
342
|
items["type_"] = _get_type_from_schema(schema)
|
|
343
343
|
if items["type_"] == glm.Type.OBJECT and "properties" in schema:
|
|
344
344
|
items["properties"] = _get_properties_from_schema_any(schema["properties"])
|
|
345
|
-
if "title" in schema:
|
|
346
|
-
items["title"] = schema
|
|
347
345
|
if "title" in schema or "description" in schema:
|
|
348
346
|
items["description"] = (
|
|
349
347
|
schema.get("description") or schema.get("title") or ""
|
|
@@ -579,9 +579,9 @@ class ChatGoogleGenerativeAI(_BaseGoogleGenerativeAI, BaseChatModel):
|
|
|
579
579
|
Instantiation:
|
|
580
580
|
To use, you must have either:
|
|
581
581
|
|
|
582
|
-
1. The ``GOOGLE_API_KEY
|
|
583
|
-
2. Pass your API key using the google_api_key kwarg
|
|
584
|
-
|
|
582
|
+
1. The ``GOOGLE_API_KEY`` environment variable set with your API key, or
|
|
583
|
+
2. Pass your API key using the google_api_key kwarg
|
|
584
|
+
to the ChatGoogleGenerativeAI constructor.
|
|
585
585
|
|
|
586
586
|
.. code-block:: python
|
|
587
587
|
|
|
@@ -1374,7 +1374,11 @@ class ChatGoogleGenerativeAI(_BaseGoogleGenerativeAI, BaseChatModel):
|
|
|
1374
1374
|
|
|
1375
1375
|
@property
|
|
1376
1376
|
def _supports_tool_choice(self) -> bool:
|
|
1377
|
-
return
|
|
1377
|
+
return (
|
|
1378
|
+
"gemini-1.5-pro" in self.model
|
|
1379
|
+
or "gemini-1.5-flash" in self.model
|
|
1380
|
+
or "gemini-2" in self.model
|
|
1381
|
+
)
|
|
1378
1382
|
|
|
1379
1383
|
|
|
1380
1384
|
def _get_tool_name(
|
|
@@ -27,9 +27,9 @@ class GoogleGenerativeAIEmbeddings(BaseModel, Embeddings):
|
|
|
27
27
|
|
|
28
28
|
To use, you must have either:
|
|
29
29
|
|
|
30
|
-
1. The ``GOOGLE_API_KEY
|
|
31
|
-
2. Pass your API key using the google_api_key kwarg
|
|
32
|
-
|
|
30
|
+
1. The ``GOOGLE_API_KEY`` environment variable set with your API key, or
|
|
31
|
+
2. Pass your API key using the google_api_key kwarg
|
|
32
|
+
to the GoogleGenerativeAIEmbeddings constructor.
|
|
33
33
|
|
|
34
34
|
Example:
|
|
35
35
|
.. code-block:: python
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
langchain_google_genai/__init__.py,sha256=Oji-S2KYWrku1wyQEskY84IOfY8MfRhujjJ4d7hbsk4,2758
|
|
2
2
|
langchain_google_genai/_common.py,sha256=ASlwE8hEbvOm55BVF_D4rf2nl7RYsnpsi5xbM6DW3Cc,1576
|
|
3
3
|
langchain_google_genai/_enums.py,sha256=KLPmxS1K83K4HjBIXFaXoL_sFEOv8Hq-2B2PDMKyDgo,197
|
|
4
|
-
langchain_google_genai/_function_utils.py,sha256=
|
|
4
|
+
langchain_google_genai/_function_utils.py,sha256=ndxR5W17VmDDyOZHYxSeDx8v8TnFkI5xkUOYXkIA9qM,16825
|
|
5
5
|
langchain_google_genai/_genai_extension.py,sha256=81a4ly5ZHlqMf37uJfdB8K41qE6J5ujLnbUypIfFf2o,20775
|
|
6
6
|
langchain_google_genai/_image_utils.py,sha256=tPrQyMvVmO8xkuow1SvA91omxUEv9ZUy1EMHNGjMAKY,5202
|
|
7
|
-
langchain_google_genai/chat_models.py,sha256=
|
|
8
|
-
langchain_google_genai/embeddings.py,sha256=
|
|
7
|
+
langchain_google_genai/chat_models.py,sha256=_odB7296uANzvOtFmIJ5KaLNSHMEI_ZSMTSNqWFeWLQ,54316
|
|
8
|
+
langchain_google_genai/embeddings.py,sha256=jQRWPXD9twXoVBlXJQG7Duz0fb8UC0kgRzzwAmW3Dic,10146
|
|
9
9
|
langchain_google_genai/genai_aqa.py,sha256=qB6h3-BSXqe0YLR3eeVllYzmNKK6ofI6xJLdBahUVZo,4300
|
|
10
10
|
langchain_google_genai/google_vector_store.py,sha256=4wvhIiOmc3Fo046FyafPmT9NBCLek-9bgluvuTfrbpQ,16148
|
|
11
11
|
langchain_google_genai/llms.py,sha256=EPUgkz5aqKOyKbztT7br8w60Uo5D_X_bF5qP-zd6iLs,14593
|
|
12
12
|
langchain_google_genai/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
|
-
langchain_google_genai-2.0.
|
|
14
|
-
langchain_google_genai-2.0.
|
|
15
|
-
langchain_google_genai-2.0.
|
|
16
|
-
langchain_google_genai-2.0.
|
|
13
|
+
langchain_google_genai-2.0.7.dist-info/LICENSE,sha256=DppmdYJVSc1jd0aio6ptnMUn5tIHrdAhQ12SclEBfBg,1072
|
|
14
|
+
langchain_google_genai-2.0.7.dist-info/METADATA,sha256=OSfBF_lTftCoMdKtPt14XLgoqs45xa-RJfWXmPwr1ao,3592
|
|
15
|
+
langchain_google_genai-2.0.7.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
16
|
+
langchain_google_genai-2.0.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|