diff --git a/.all-contributorsrc b/.all-contributorsrc new file mode 100644 index 00000000000..d739b08c939 --- /dev/null +++ b/.all-contributorsrc @@ -0,0 +1,4 @@ +{ + "projectName": "litellm", + "projectOwner": "BerriAI" +} diff --git a/.circleci/requirements.txt b/.circleci/requirements.txt index 4e941c0a605..5ef69ad7a43 100644 --- a/.circleci/requirements.txt +++ b/.circleci/requirements.txt @@ -3,4 +3,6 @@ openai python-dotenv openai tiktoken -importlib_metadata \ No newline at end of file +importlib_metadata +baseten +gptcache \ No newline at end of file diff --git a/.env.example b/.env.example index 36eff8a4340..c87c2ef8fd4 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,6 @@ # OpenAI OPENAI_API_KEY = "" +OPENAI_API_BASE = "" # Cohere COHERE_API_KEY = "" # OpenRouter @@ -18,4 +19,4 @@ REPLICATE_API_TOKEN = "" # Anthropic ANTHROPIC_API_KEY = "" # Infisical -INFISICAL_TOKEN = "" \ No newline at end of file +INFISICAL_TOKEN = "" diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 00000000000..219a75d5f0d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,10 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +What's the problem? (if there are multiple - list as bullet points) diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 00000000000..cc5207f08ac --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,14 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Your feature request in one line** +Describe your request in one line + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. diff --git a/README.md b/README.md index edd427a9c6a..a77958430f4 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,53 @@ -# *🚅 litellm* -[](https://pypi.org/project/litellm/) -[](https://pypi.org/project/litellm/0.1.1/) -[](https://dl.circleci.com/status-badge/redirect/gh/BerriAI/litellm/tree/main) - +
+
Call all LLM APIs using the OpenAI format [Anthropic, Huggingface, Cohere, Azure OpenAI etc.]
+ -[](https://discord.gg/wuPM9dRgDw) +| Model Name | \n", + "claude-instant-1 | \n", + "gpt-3.5-turbo-0613 | \n", + "gpt-3.5-turbo-16k-0613 | \n", + "gpt-4-0613 | \n", + "replicate/llama-2-70b-chat:58d078176e02c219e11eb4da5a02a7830a283b14cf8f94537af893ccff5ee781 | \n", + "
|---|---|---|---|---|---|
| Prompt | \n", + "\n", + " | \n", + " | \n", + " | \n", + " | \n", + " |
| \\nIs paul graham a writer? | \n", + "Yes, Paul Graham is considered a writer in ad... | \n", + "Yes, Paul Graham is a writer. He has written s... | \n", + "Yes, Paul Graham is a writer. He has authored ... | \n", + "Yes, Paul Graham is a writer. He is an essayis... | \n", + "Yes, Paul Graham is an author. According to t... | \n", + "
| \\nWhat has Paul Graham done? | \n", + "Paul Graham has made significant contribution... | \n", + "Paul Graham has achieved several notable accom... | \n", + "Paul Graham has made significant contributions... | \n", + "Paul Graham is known for his work on the progr... | \n", + "Paul Graham has had a diverse career in compu... | \n", + "
| \\nWhat is Paul Graham known for? | \n", + "Paul Graham is known for several things:\\n\\n-... | \n", + "Paul Graham is known for his work on the progr... | \n", + "Paul Graham is known for his work on the progr... | \n", + "Paul Graham is known for his work on the progr... | \n", + "Paul Graham is known for many things, includi... | \n", + "
| \\nWhere does Paul Graham live? | \n", + "Based on the information provided:\\n\\n- Paul ... | \n", + "According to the given information, Paul Graha... | \n", + "Paul Graham currently lives in England, where ... | \n", + "The text does not provide a current place of r... | \n", + "Based on the information provided, Paul Graha... | \n", + "
| \\nWho is Paul Graham? | \n", + "Paul Graham is an influential computer scient... | \n", + "Paul Graham is an English computer scientist, ... | \n", + "Paul Graham is an English computer scientist, ... | \n", + "Paul Graham is an English computer scientist, ... | \n", + "Paul Graham is an English computer scientist,... | \n", + "
+
Call all LLM APIs using the OpenAI format [Anthropic, Huggingface, Cohere, Azure OpenAI etc.]
+ + +
+ {console.log("token: ", token)}
+ {token ? codeWithToken : codeWithoutToken}
+
+ )
+}
+
+const QueryParamReader = () => {
+ const [token, setToken] = useState(null);
+
+ useEffect(() => {
+ const urlParams = new URLSearchParams(window.location.search);
+ console.log("urlParams: ", urlParams)
+ const token = urlParams.get('token');
+ setToken(token);
+ }, []);
+
+ return (
+