litellm-mirror/litellm
Rajan Paneru 65b07bcb8c Preserving the Pydantic Message Object
Following statement replaces the Pydantic Message Object and initialize it with the dict
model_response["choices"][0]["message"] = response_json["message"]

We need to make sure message is always litellm.Message object

As a fix, based on the code of ollama.py file, i am updating just the content intead of entire object for both sync and async functions
2024-05-10 22:12:32 +09:30
..
assistants feat(assistants/main.py): support litellm.get_assistants() and litellm.get_messages() 2024-05-04 21:30:28 -07:00
deprecated_litellm_server refactor: add black formatting 2023-12-25 14:11:20 +05:30
integrations revered the patch so that the fix can be applied in the main place 2024-05-10 22:04:44 +09:30
llms Preserving the Pydantic Message Object 2024-05-10 22:12:32 +09:30
proxy Merge branch 'main' into litellm_region_based_routing 2024-05-08 22:19:51 -07:00
router_strategy feat(proxy_server.py): return litellm version in response headers 2024-05-08 16:00:08 -07:00
tests test bedrock pricing 2024-05-08 15:26:53 -07:00
types feat(router.py): enable filtering model group by 'allowed_model_region' 2024-05-08 22:10:17 -07:00
__init__.py Added support for the deepseek api 2024-05-07 11:44:03 -07:00
_logging.py feat(utils.py): json logs for raw request sent by litellm 2024-04-29 19:21:19 -07:00
_redis.py feat(proxy_server.py): return litellm version in response headers 2024-05-08 16:00:08 -07:00
_service_logger.py fix(test_lowest_tpm_rpm_routing_v2.py): unit testing for usage-based-routing-v2 2024-04-18 21:38:00 -07:00
_version.py (fix) ci/cd don't let importing litellm._version block starting proxy 2024-02-01 16:23:16 -08:00
budget_manager.py feat(proxy_server.py): return litellm version in response headers 2024-05-08 16:00:08 -07:00
caching.py feat(slack_alerting.py): support sending daily reports on deployments 2024-05-06 17:18:42 -07:00
cost.json
exceptions.py fix - show api_base, model in exceptions 2024-04-24 14:03:48 -07:00
main.py Merge branch 'main' into litellm_region_based_routing 2024-05-08 22:19:51 -07:00
model_prices_and_context_window_backup.json fix model cost map 2024-05-07 19:15:58 -07:00
requirements.txt
router.py feat(router.py): enable filtering model group by 'allowed_model_region' 2024-05-08 22:10:17 -07:00
timeout.py refactor: add black formatting 2023-12-25 14:11:20 +05:30
utils.py Merge branch 'main' into litellm_region_based_routing 2024-05-08 22:19:51 -07:00