litellm-mirror/litellm/proxy
Krrish Dholakia cbad9e7502 build(ui): allow admin_viewer to view teams tab
Allows admin viewe role to see available teams on proxy ui
2024-08-02 16:19:40 -07:00
..
_experimental feat(litellm_logging.py): log exception response headers to langfuse 2024-08-01 18:07:47 -07:00
analytics_endpoints
auth build(ui): allow admin_viewer to view teams tab 2024-08-02 16:19:40 -07:00
common_utils log file_size_in_mb in metadata 2024-07-29 08:00:28 -07:00
db
example_config_yaml
fine_tuning_endpoints enforce ft endpoints as premium feature 2024-07-31 16:43:54 -07:00
guardrails feat(auth_checks.py): Allow admin to disable team from turning on/off guardrails. 2024-07-20 18:39:05 -07:00
health_endpoints feat(ui): add ability to enable traceloop + langsmith via ui 2024-07-31 21:40:29 -07:00
hooks fix raise better error when crossing tpm / rpm limits 2024-07-26 17:35:08 -07:00
management_endpoints build(ui): allow admin_viewer to view teams tab 2024-08-02 16:19:40 -07:00
management_helpers
openai_files_endpoints fix POST files 2024-07-31 16:27:59 -07:00
pass_through_endpoints
proxy_load_test
queue
secret_managers
spend_tracking
tests example mistral sdk 2024-07-25 19:48:54 -07:00
ui_crud_endpoints
.gitignore
__init__.py
_logging.py
_new_secret_config.yaml feat(litellm_logging.py): log exception response headers to langfuse 2024-08-01 18:07:47 -07:00
_super_secret_config.yaml docs(enterprise.md): cleanup docs 2024-07-15 14:52:08 -07:00
_types.py feat(ui): add ability to enable traceloop + langsmith via ui 2024-07-31 21:40:29 -07:00
admin_ui.py
cached_logo.jpg
caching_routes.py
custom_callbacks.py
custom_callbacks1.py
custom_handler.py feat(proxy_server.py): support custom llm handler on proxy 2024-07-25 17:56:34 -07:00
enterprise
health_check.py fix linting errors on main 2024-07-18 13:32:48 -07:00
lambda.py
litellm_pre_call_utils.py use itellm.forward_traceparent_to_llm_provider 2024-08-01 18:07:38 -07:00
llamaguard_prompt.txt
logo.jpg
openapi.json
otel_config.yaml
post_call_rules.py
prisma_migration.py
proxy_cli.py
proxy_config.yaml init gcs using gcs_bucket 2024-08-01 18:07:38 -07:00
proxy_server.py feat(ui): add ability to enable traceloop + langsmith via ui 2024-07-31 21:40:29 -07:00
README.md
schema.prisma fix DB accept null values for api_base, user, etc 2024-07-23 16:33:04 -07:00
start.sh
utils.py use common helpers for writing to otel 2024-07-27 11:40:39 -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.