langroid 0.59.1__py3-none-any.whl → 0.59.3__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.
- langroid/language_models/model_info.py +12 -9
- langroid/language_models/openai_gpt.py +1 -1
- {langroid-0.59.1.dist-info → langroid-0.59.3.dist-info}/METADATA +1 -1
- {langroid-0.59.1.dist-info → langroid-0.59.3.dist-info}/RECORD +6 -6
- {langroid-0.59.1.dist-info → langroid-0.59.3.dist-info}/WHEEL +0 -0
- {langroid-0.59.1.dist-info → langroid-0.59.3.dist-info}/licenses/LICENSE +0 -0
@@ -74,10 +74,10 @@ class GeminiModel(ModelName):
|
|
74
74
|
GEMINI_1_5_PRO = "gemini-1.5-pro"
|
75
75
|
GEMINI_2_5_PRO = "gemini-2.5-pro"
|
76
76
|
GEMINI_2_5_FLASH = "gemini-2.5-flash"
|
77
|
-
|
77
|
+
GEMINI_2_5_FLASH_LITE = "gemini-2.5-flash-lite"
|
78
78
|
GEMINI_2_PRO = "gemini-2.0-pro-exp-02-05"
|
79
79
|
GEMINI_2_FLASH = "gemini-2.0-flash"
|
80
|
-
GEMINI_2_FLASH_LITE = "gemini-2.0-flash-lite
|
80
|
+
GEMINI_2_FLASH_LITE = "gemini-2.0-flash-lite"
|
81
81
|
GEMINI_2_FLASH_THINKING = "gemini-2.0-flash-thinking-exp"
|
82
82
|
|
83
83
|
|
@@ -90,6 +90,9 @@ class OpenAI_API_ParamInfo(BaseModel):
|
|
90
90
|
params: Dict[str, List[str]] = dict(
|
91
91
|
reasoning_effort=[
|
92
92
|
OpenAIChatModel.O3_MINI.value,
|
93
|
+
GeminiModel.GEMINI_2_5_PRO.value,
|
94
|
+
GeminiModel.GEMINI_2_5_FLASH.value,
|
95
|
+
GeminiModel.GEMINI_2_5_FLASH_LITE.value,
|
93
96
|
],
|
94
97
|
)
|
95
98
|
# model-specific params in extra_body
|
@@ -319,7 +322,7 @@ MODEL_INFO: Dict[str, ModelInfo] = {
|
|
319
322
|
allows_streaming=False,
|
320
323
|
allows_system_message=False,
|
321
324
|
has_structured_output=True,
|
322
|
-
unsupported_params=["temperature"
|
325
|
+
unsupported_params=["temperature"],
|
323
326
|
rename_params={"max_tokens": "max_completion_tokens"},
|
324
327
|
has_tools=False,
|
325
328
|
description="GPT-5",
|
@@ -335,7 +338,7 @@ MODEL_INFO: Dict[str, ModelInfo] = {
|
|
335
338
|
allows_streaming=False,
|
336
339
|
allows_system_message=False,
|
337
340
|
has_structured_output=True,
|
338
|
-
unsupported_params=["temperature"
|
341
|
+
unsupported_params=["temperature"],
|
339
342
|
rename_params={"max_tokens": "max_completion_tokens"},
|
340
343
|
has_tools=False,
|
341
344
|
description="GPT-5 Mini",
|
@@ -351,7 +354,7 @@ MODEL_INFO: Dict[str, ModelInfo] = {
|
|
351
354
|
allows_streaming=False,
|
352
355
|
allows_system_message=False,
|
353
356
|
has_structured_output=True,
|
354
|
-
unsupported_params=["temperature"
|
357
|
+
unsupported_params=["temperature"],
|
355
358
|
rename_params={"max_tokens": "max_completion_tokens"},
|
356
359
|
has_tools=False,
|
357
360
|
description="GPT-5 Nano",
|
@@ -438,7 +441,7 @@ MODEL_INFO: Dict[str, ModelInfo] = {
|
|
438
441
|
input_cost_per_million=0.075,
|
439
442
|
output_cost_per_million=0.30,
|
440
443
|
rename_params={"max_tokens": "max_completion_tokens"},
|
441
|
-
description="Gemini 2.0 Flash Lite
|
444
|
+
description="Gemini 2.0 Flash Lite",
|
442
445
|
),
|
443
446
|
GeminiModel.GEMINI_1_5_FLASH.value: ModelInfo(
|
444
447
|
name=GeminiModel.GEMINI_1_5_FLASH.value,
|
@@ -503,8 +506,8 @@ MODEL_INFO: Dict[str, ModelInfo] = {
|
|
503
506
|
rename_params={"max_tokens": "max_completion_tokens"},
|
504
507
|
description="Gemini 2.5 Flash",
|
505
508
|
),
|
506
|
-
GeminiModel.
|
507
|
-
name=GeminiModel.
|
509
|
+
GeminiModel.GEMINI_2_5_FLASH_LITE.value: ModelInfo(
|
510
|
+
name=GeminiModel.GEMINI_2_5_FLASH_LITE.value,
|
508
511
|
provider=ModelProvider.GOOGLE,
|
509
512
|
context_length=65_536,
|
510
513
|
max_output_tokens=65_536,
|
@@ -512,7 +515,7 @@ MODEL_INFO: Dict[str, ModelInfo] = {
|
|
512
515
|
cached_cost_per_million=0.025,
|
513
516
|
output_cost_per_million=0.40,
|
514
517
|
rename_params={"max_tokens": "max_completion_tokens"},
|
515
|
-
description="Gemini 2.5 Flash Lite
|
518
|
+
description="Gemini 2.5 Flash Lite",
|
516
519
|
),
|
517
520
|
}
|
518
521
|
|
@@ -215,7 +215,7 @@ class OpenAICallParams(BaseModel):
|
|
215
215
|
top_p: float | None = None
|
216
216
|
reasoning_effort: str | None = None # or "low" or "high" or "medium"
|
217
217
|
top_logprobs: int | None = None # if int, requires logprobs=True
|
218
|
-
n: int =
|
218
|
+
n: int | None = None # how many completions to generate (n > 1 is NOT handled now)
|
219
219
|
stop: str | List[str] | None = None # (list of) stop sequence(s)
|
220
220
|
seed: int | None = None
|
221
221
|
user: str | None = None # user id for tracking
|
@@ -77,8 +77,8 @@ langroid/language_models/base.py,sha256=uRi-XtQhsEBN702_lGepxlNQ0e8gaPgaXjULYn2r
|
|
77
77
|
langroid/language_models/client_cache.py,sha256=c8tAUTKxbd-CVGRy9WPYhI1pLtarFWWwX6-qm4ZXaqk,9399
|
78
78
|
langroid/language_models/config.py,sha256=rhEZ9Wwq42q1uW_-oRFbilJhIw1vYlTvYqIk_7pHiSY,397
|
79
79
|
langroid/language_models/mock_lm.py,sha256=tA9JpURznsMZ59iRhFYMmaYQzAc0D0BT-PiJIV58sAk,4079
|
80
|
-
langroid/language_models/model_info.py,sha256=
|
81
|
-
langroid/language_models/openai_gpt.py,sha256=
|
80
|
+
langroid/language_models/model_info.py,sha256=iJXNriyibD0S-7NbGoUgQWzotNRZ614AfadCtF3ernU,19321
|
81
|
+
langroid/language_models/openai_gpt.py,sha256=QPgqQTCHYtu-fPZaA2cOOB2kAMUiaAHjUxO8wVEaIvI,94082
|
82
82
|
langroid/language_models/provider_params.py,sha256=upG4cBrX8fcvAo1g7fcsv-rBbsfypIqcDRRV9m1hohU,4846
|
83
83
|
langroid/language_models/utils.py,sha256=n55Oe2_V_4VNGhytvPWLYC-0tFS07RTjN83KWl-p_MI,6032
|
84
84
|
langroid/language_models/prompt_formatter/__init__.py,sha256=2-5cdE24XoFDhifOLl8yiscohil1ogbP1ECkYdBlBsk,372
|
@@ -139,7 +139,7 @@ langroid/vector_store/pineconedb.py,sha256=7V0Bkt4ZrOR3V90tdXvdFmyNGuww7SFdyPq7-
|
|
139
139
|
langroid/vector_store/postgres.py,sha256=TY_VshimwFZglYgKYm7Qn1F-dCSL8GsXRTgmh7VTe9c,16110
|
140
140
|
langroid/vector_store/qdrantdb.py,sha256=mqxMOrcLAQpl0opuL8vXhdIt6ppv2zYyAvddHZoEW0Y,19184
|
141
141
|
langroid/vector_store/weaviatedb.py,sha256=BS95bxVKNYfQc9VPb85a1HlcgnXfAkgMzjydnjCgRHc,11853
|
142
|
-
langroid-0.59.
|
143
|
-
langroid-0.59.
|
144
|
-
langroid-0.59.
|
145
|
-
langroid-0.59.
|
142
|
+
langroid-0.59.3.dist-info/METADATA,sha256=r0omiQ5PiwmrqwuCOJWqT4Hk77Iv50WbWBw8IFTgcLo,66517
|
143
|
+
langroid-0.59.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
144
|
+
langroid-0.59.3.dist-info/licenses/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
|
145
|
+
langroid-0.59.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|