From ef228db862225409100517e04ec3ce73569785ee Mon Sep 17 00:00:00 2001 From: noble-varghese Date: Tue, 12 Sep 2023 15:45:40 +0530 Subject: [PATCH] chore: Updating the documentation --- examples/demo.py | 26 ------------------- ...lback.ipynb => fallback_loadbalance.ipynb} | 2 +- 2 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 examples/demo.py rename examples/{fallback.ipynb => fallback_loadbalance.ipynb} (99%) diff --git a/examples/demo.py b/examples/demo.py deleted file mode 100644 index 1c1f8e5a..00000000 --- a/examples/demo.py +++ /dev/null @@ -1,26 +0,0 @@ - -import portkey as pk -from portkey import Config, LLMOptions -from getpass import getpass - -# Enter the password on the prompt window. -API_KEY = "x2trk" - -# Setting the API key -pk.api_key = API_KEY - -pk.config = Config( - mode="fallback", - llms=[ - LLMOptions(virtual_key="open-ai-key-66a67d", provider="openai"), - LLMOptions(virtual_key="anthropic-key-351feb", provider="anthropic") - ] -) - - -response = pk.Completions.create( - model="text-davinci-002", - prompt="Who are you ?" -) - -print(response.choices[0].text) \ No newline at end of file diff --git a/examples/fallback.ipynb b/examples/fallback_loadbalance.ipynb similarity index 99% rename from examples/fallback.ipynb rename to examples/fallback_loadbalance.ipynb index f8263fc7..d0e46133 100644 --- a/examples/fallback.ipynb +++ b/examples/fallback_loadbalance.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# Portkey | Building Resilient Llamaindex Apps\n", + "# Portkey | Building Resilient LLM Apps\n", "\n", "**Portkey** is a full-stack LLMOps platform that productionizes your Gen AI app reliably and securely." ]