litellm/litellm
cantalupo555 9b1c5f7e36
feat(zai): Add GLM-4.7 model with reasoning support (#18476)
Add support for Z.AI GLM-4.7, latest flagship model with enhanced reasoning capabilities.

Changes:
- Add zai/glm-4.7 to model pricing with /bin/bash.60/M input, .20/M output
- Add cached input pricing (/bin/bash.11/M) for GLM-4.7
- Add supports_reasoning flag to enable thinking parameter
- Update ZAIChatConfig to support thinking parameter for models with reasoning
- Update documentation with GLM-4.7 as latest flagship model
- Add cached input column to pricing table (GLM-4.7 only)
- Add tests for GLM-4.7 reasoning support and cost calculation
- Update all examples to use GLM-4.7

Model specifications:
- Context: 200K input, 128K output
- Supports: reasoning, function calling, tool choice, prompt caching
- Pricing: Same as GLM-4.6 with cache support

See: https://docs.z.ai/guides/llm/glm-4.7
2026-01-04 00:44:19 +05:30
..
a2a_protocol [Refactor] litellm/init.py: lazy load LLMClientCache (#18008) 2025-12-16 05:44:06 -08:00
anthropic_interface [Feat] Unified Skills API - works across Anthropic, Vertex, Azure, Bedrock (#18232) 2025-12-19 18:55:59 +05:30
assistants
batch_completion
batches
caching 3[Fix] CI/CD - logging_testing (#18204) 2025-12-18 10:52:24 -08:00
completion_extras fix(responses-api): use list format with input_text for tool results (#18257) 2025-12-20 13:46:14 +05:30
containers
endpoints/speech/speech_to_completion_bridge
experimental_mcp_client
files Add support for expires after param 2025-12-12 10:01:18 +05:30
fine_tuning
google_genai google genai adapter inline data support (#18477) 2026-01-04 00:43:22 +05:30
images Add support for image generation via azure ad token 2025-12-24 15:15:20 +05:30
integrations Add log_format parameter to GenericAPILogger (#18587) 2026-01-02 23:28:30 +05:30
interactions [Feat] Interactions API - allow using all litellm providers (interactions -> responses api bridge) (#18373) 2025-12-23 22:30:22 +05:30
litellm_core_utils fix: handle empty error objects in response conversion (#18493) 2026-01-04 00:37:52 +05:30
llms feat(zai): Add GLM-4.7 model with reasoning support (#18476) 2026-01-04 00:44:19 +05:30
ocr
passthrough
proxy Merge pull request #18597 from BerriAI/litellm_fix_openapi_to_mcp 2026-01-03 09:43:06 +09:00
rag code QA fixes 2025-12-20 13:56:04 +05:30
realtime_api refactor: Add lazy loading for get_llm_provider (#18591) 2026-01-02 13:18:57 -08:00
rerank_api Add tests for header forwarding 2025-12-12 17:54:17 +05:30
responses fix(cost_calculator): correct gpt-image-1 cost calculation using token-based pricing (#17906) 2026-01-02 23:08:52 +05:30
router_strategy 3[Fix] CI/CD - logging_testing (#18204) 2025-12-18 10:52:24 -08:00
router_utils refactor: Add lazy loading for get_llm_provider (#18591) 2026-01-02 13:18:57 -08:00
search
secret_managers feat: allow per-team Vault overrides when storing keys 2025-12-18 06:21:53 +09:00
skills [Feat] Unified Skills API - works across Anthropic, Vertex, Azure, Bedrock (#18232) 2025-12-19 18:55:59 +05:30
types feat(types): add output_text property to ResponsesAPIResponse (#18491) 2026-01-04 00:38:32 +05:30
vector_store_files
vector_stores
videos
__init__.py feat: lazy load heavy imports to reduce memory usage at import time (#18592) 2026-01-02 13:51:28 -08:00
_lazy_imports_registry.py feat: lazy load heavy imports to reduce memory usage at import time (#18592) 2026-01-02 13:51:28 -08:00
_lazy_imports.py refactor: Add lazy loading for get_llm_provider (#18591) 2026-01-02 13:18:57 -08:00
_logging.py
_redis.py
_service_logger.py
_uuid.py
_version.py
budget_manager.py
constants.py [Feat] AI Gateway - Add support for Platform Fee / Margins (#18427) 2025-12-25 11:07:27 +05:30
cost_calculator.py [Feat] AI Gateway - Add support for Platform Fee / Margins (#18427) 2025-12-25 11:07:27 +05:30
cost.json
exceptions.py
main.py Remove double imports 2025-12-24 12:22:19 +05:30
model_prices_and_context_window_backup.json feat(zai): Add GLM-4.7 model with reasoning support (#18476) 2026-01-04 00:44:19 +05:30
mypy.ini
py.typed
router.py [Feat] Guardrails Load Balancing - Allow Platform admins to load balance between guardrails (#18181) 2025-12-19 00:08:03 +05:30
scheduler.py
timeout.py
utils.py Lazy load 9 heavy imports in litellm/utils.py (#18595) 2026-01-02 14:54:09 -08:00