diff --git a/docs/my-website/docs/debugging/hosted_debugging.md b/docs/my-website/docs/debugging/hosted_debugging.md index f457e750cc..f6d268a029 100644 --- a/docs/my-website/docs/debugging/hosted_debugging.md +++ b/docs/my-website/docs/debugging/hosted_debugging.md @@ -18,30 +18,42 @@ See our live dashboard 👉 [admin.litellm.ai](https://admin.litellm.ai/) - By setting it as an environment variable - `os.environ["LITELLM_EMAIL"] = "your_email"`. ## Code Setup -```python - import litellm - - ## Setup for activating / using the litellm dashboard - litellm.email = "test_email@test.com" - -``` - -## Calling Completion() with the LiteLLM Dashboard ```python import litellm -from litellm import completion ## Setup for activating / using the litellm dashboard litellm.email = "test_email@test.com" -user_message = "Hello, how are you?" -messages = [{ "content": user_message,"role": "user"}] +``` +## Using LiteLLM Dashboard - Add New LLMs +LiteLLM allows you to add a new model using the liteLLM Dashboard +Go to `admin.litellm.ai/` +Navigate to the 'Add New LLM' Section +Dashboard +- Select Provider +- Select your LLM +- Add your LLM Key + +### Using your new LLM - Completion() with the LiteLLM Dashboard +```python +from litellm import embedding, completion +# keys set in admin.litellm.ai/ or .env OPENAI_API_KEY +messages = [{ "content": "Hello, how are you?" ,"role": "user"}] # openai call response = completion(model="gpt-3.5-turbo", messages=[{"role": "user", "content": "Hi 👋 - i'm openai"}]) +``` -# bad request call -response = completion(model="chatgpt-test", messages=[{"role": "user", "content": "Hi 👋 - i'm a bad request"}]) +## Using LiteLLM Dashboard - Debug your Call Logs -``` \ No newline at end of file +```python +from litellm import embedding, completion +# keys set in admin.litellm.ai/ or .env OPENAI_API_KEY +messages = [{ "content": "Hello, how are you?" ,"role": "user"}] + +# openai call +response = completion(model="gpt-3.5-turbo", messages=[{"role": "user", "content": "Hi 👋 - i'm openai"}]) +``` + +See your Logs below \ No newline at end of file diff --git a/docs/my-website/img/add_model.png b/docs/my-website/img/add_model.png new file mode 100644 index 0000000000..fc58895f66 Binary files /dev/null and b/docs/my-website/img/add_model.png differ