python-fastllm 0.0.66__tar.gz → 0.0.68__tar.gz
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.
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/PKG-INFO +1 -1
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/fastllm/__init__.py +1 -1
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/fastllm/gemini.py +2 -1
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/fastllm/model_prices.json +6466 -688
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/fastllm/types.py +15 -15
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/python_fastllm.egg-info/PKG-INFO +1 -1
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/README.md +0 -0
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/fastllm/_modidx.py +0 -0
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/fastllm/acomplete.py +0 -0
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/fastllm/anthropic.py +0 -0
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/fastllm/chat.py +0 -0
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/fastllm/codex.py +0 -0
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/fastllm/openai_chat.py +0 -0
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/fastllm/openai_responses.py +0 -0
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/fastllm/responses.py +0 -0
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/fastllm/streaming.py +0 -0
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/pyproject.toml +0 -0
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/python_fastllm.egg-info/SOURCES.txt +0 -0
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/python_fastllm.egg-info/dependency_links.txt +0 -0
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/python_fastllm.egg-info/entry_points.txt +0 -0
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/python_fastllm.egg-info/requires.txt +0 -0
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/python_fastllm.egg-info/top_level.txt +0 -0
- {python_fastllm-0.0.66 → python_fastllm-0.0.68}/setup.cfg +0 -0
|
@@ -222,9 +222,10 @@ _gem_think_levels = dict(minimal='low', low='low', medium='medium', high='high'
|
|
|
222
222
|
def denorm_reasoning(v, model=''):
|
|
223
223
|
"Map canonical reasoning_effort to Gemini thinkingConfig (uses thinkingLevel for Gemini 3+)."
|
|
224
224
|
if v is None or isinstance(v, dict): return v
|
|
225
|
+
if 'gemini-4' in model and isinstance(v, str): v = resolve_effort(['low','medium','high'], v) or 'low'
|
|
225
226
|
if not isinstance(v, str) or v not in _gem_think_budgets:
|
|
226
227
|
raise ValueError(f"Invalid reasoning effort for Gemini: {v!r}; expected one of {list(_gem_think_budgets)}, a dict, or None")
|
|
227
|
-
if 'gemini-3' in model: return {'thinkingLevel': _gem_think_levels[v], 'includeThoughts': True}
|
|
228
|
+
if 'gemini-3' in model or 'gemini-4' in model: return {'thinkingLevel': _gem_think_levels[v], 'includeThoughts': True}
|
|
228
229
|
return {'thinkingBudget': _gem_think_budgets[v], 'includeThoughts': True}
|
|
229
230
|
|
|
230
231
|
# %% ../nbs/07_gemini.ipynb #8fa9fbb8
|