mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-24 22:09:56 +00:00
* fix(ollama): send model-info lookups to the call's api_base with its key * fix(decisions): read only the cost map for a model's catalog mode * test(ollama): wait for each call's success logging before counting lookups * fix(ollama): retry failed model-info lookups and send every lookup to the call's api_base with its key * fix(ollama): send the request's Authorization bearer token on model-info lookups before api_key * fix(ollama): retry failed lookups once a minute, strip Lemonade's chat path, and key the cache on api_base only where the lookup reads it * fix(ollama): withhold keys behind non-Bearer auth headers and keep get_model_info returning dicts Lookups send no key when the call carries a non-Bearer Authorization header. Public get_model_info on the Ollama and Lemonade configs returns a dict again, with failures kept for the per-call path through look_up_model_info. A direct keyed litellm.get_model_info call stays uncached as before, and Ollama embeddings record the call target without firing pre-call callbacks * fix(ollama): keep slow lookup failures, look up max tokens and cache hits at the call target * test(ocr): register test prices instead of stubbing the model info lookup * fix(ollama): send the caller key only with the call's own api_base and keep keyed get_model_info uncached --------- Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_call.py | ||
| test_main.py | ||