litellm-mirror/litellm/proxy
2024-08-29 13:05:00 -07:00
..
_experimental feat(team_endpoints.py): return team member budgets in /team/info call 2024-08-28 19:14:01 -07:00
analytics_endpoints show correct key aliases on ui 2024-06-21 14:36:38 -07:00
auth Merge branch 'main' into litellm_main_staging 2024-08-28 18:05:27 -07:00
common_utils docs semantic caching qdrant 2024-08-21 13:03:41 -07:00
config_management_endpoints feat(ui): for adding pass-through endpoints 2024-08-15 21:58:11 -07:00
db (feat) stop eagerly evaluating fstring 2024-03-25 09:01:42 -07:00
example_config_yaml add /rerank test 2024-08-27 17:50:37 -07:00
fine_tuning_endpoints use native endpoints 2024-08-03 16:52:43 -07:00
guardrails Merge pull request #5392 from BerriAI/litellm_add_native_cohere_rerank 2024-08-27 17:29:37 -07:00
health_endpoints fix email health checks 2024-08-06 15:59:26 -07:00
hooks v0 add rerank on litellm proxy 2024-08-27 17:28:39 -07:00
management_endpoints add set / update tags for a team 2024-08-29 13:05:00 -07:00
management_helpers feat(team_endpoints.py): return team member budgets in /team/info call 2024-08-28 19:14:01 -07:00
openai_files_endpoints fix(files_endpoints.py): fix multiple args error 2024-08-22 16:42:44 -07:00
out bump: version 1.43.15 → 1.43.16 2024-08-15 23:04:30 -07:00
pass_through_endpoints fix pass through endpoints 2024-08-21 17:21:22 -07:00
proxy_load_test (fix) locust load test use uuid 2024-03-25 15:36:30 -07:00
queue docs(scheduler.md): add request prioritization to docs 2024-05-31 19:35:47 -07:00
rerank_endpoints v0 add rerank on litellm proxy 2024-08-27 17:28:39 -07:00
secret_managers fix(aws_secret_manager.py): fix litellm license check 2024-07-03 22:07:48 -07:00
spend_tracking feat(proxy_server.py): support disabling storing master key hash in db, for spend tracking 2024-08-21 12:35:37 -07:00
tests docs on using vertex tts 2024-08-23 17:57:49 -07:00
ui_crud_endpoints ui - add Create, get, delete endpoints for IP Addresses 2024-07-09 15:12:08 -07:00
vertex_ai_endpoints refactor vertex endpoints to pass through all routes 2024-08-21 17:08:42 -07:00
.gitignore
__init__.py
_logging.py fix(_logging.py): fix timestamp format for json logs 2024-06-20 15:20:21 -07:00
_new_secret_config.yaml fix(router.py): fix cooldown check 2024-08-28 16:38:42 -07:00
_super_secret_config.yaml docs(enterprise.md): cleanup docs 2024-07-15 14:52:08 -07:00
_types.py allow settings tags per team 2024-08-29 13:03:49 -07:00
admin_ui.py
cached_logo.jpg
caching_routes.py feat - refactor team endpoints 2024-06-15 11:40:36 -07:00
custom_callbacks.py
custom_callbacks1.py v0 add rerank on litellm proxy 2024-08-27 17:28:39 -07:00
custom_guardrail.py v0 add rerank on litellm proxy 2024-08-27 17:28:39 -07:00
custom_handler.py feat(proxy_server.py): support custom llm handler on proxy 2024-07-25 19:35:52 -07:00
enterprise
health_check.py fix(health_check.py): return 'missing mode' error message, if error with health check, and mode is missing 2024-08-16 17:24:29 -07:00
lambda.py
litellm_pre_call_utils.py fix(litellm_pre_call_utils.py): don't override k-v pair sent in spend_logs_metadata by user 2024-08-23 07:10:18 -07:00
llamaguard_prompt.txt
logo.jpg
openapi.json
otel_config.yaml
post_call_rules.py
prisma_migration.py fix entrypoint 2024-08-26 20:32:23 -07:00
proxy_cli.py feat(proxy_server.py): support azure batch api endpoints 2024-08-22 15:21:43 -07:00
proxy_config.yaml add hook for oauth2 proxy 2024-08-28 15:51:20 -07:00
proxy_server.py v0 add rerank on litellm proxy 2024-08-27 17:28:39 -07:00
README.md
route_llm_request.py v0 add rerank on litellm proxy 2024-08-27 17:28:39 -07:00
schema.prisma fix created_at and updated_at not existing error 2024-08-26 21:04:39 -07:00
start.sh
utils.py fix(proxy/utils.py): fix model dump to exclude none values 2024-08-28 12:02:44 -07:00

litellm-proxy

A local, fast, and lightweight OpenAI-compatible server to call 100+ LLM APIs.

usage

$ pip install litellm
$ litellm --model ollama/codellama 

#INFO: Ollama running on http://0.0.0.0:8000

replace openai base

import openai # openai v1.0.0+
client = openai.OpenAI(api_key="anything",base_url="http://0.0.0.0:8000") # set proxy to base_url
# request sent to model set on litellm proxy, `litellm --model`
response = client.chat.completions.create(model="gpt-3.5-turbo", messages = [
    {
        "role": "user",
        "content": "this is a test request, write a short poem"
    }
])

print(response)

See how to call Huggingface,Bedrock,TogetherAI,Anthropic, etc.