Merge pull request #34 from zakhar-kogan/main

Expanded .env, added Poetry and basic Docstring
This commit is contained in:
Ishaan Jaff 2023-08-02 11:53:46 -07:00 committed by GitHub
commit 851f681156
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 1344 additions and 2 deletions

View file

@ -1,4 +1,19 @@
# OpenAI
OPENAI_API_KEY = "" OPENAI_API_KEY = ""
# Cohere
COHERE_API_KEY = "" COHERE_API_KEY = ""
# OpenRouter
OR_SITE_URL = "" OR_SITE_URL = ""
OR_APP_NAME = "LiteLLM Example app" OR_APP_NAME = "LiteLLM Example app"
OR_API_KEY = ""
# Azure API base URL
AZURE_API_BASE = ""
# Azure API version
AZURE_API_VERSION = ""
# Azure API key
AZURE_API_KEY = ""
# Replicate
REPLICATE_API_KEY = ""
REPLICATE_API_TOKEN = ""
# Anthropic
ANTHROPIC_API_KEY = ""

1
.gitignore vendored
View file

@ -1 +1,2 @@
.venv
.env .env

1306
poetry.lock generated Normal file

File diff suppressed because it is too large Load diff

21
pyproject.toml Normal file
View file

@ -0,0 +1,21 @@
[tool.poetry]
name = "litellm"
version = "0.1.212"
description = "Library to easily interface with LLM API providers"
authors = ["BerriAI"]
license = "MIT License"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.9"
openai = {extras = ["datalib"], version = "^0.27.8"}
cohere = "^4.18.0"
pytest = "^7.4.0"
anthropic = "^0.3.7"
replicate = "^0.10.0"
python-dotenv = "^1.0.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

View file

@ -3,6 +3,5 @@ cohere
anthropic anthropic
replicate replicate
pytest pytest
pytest
python-dotenv python-dotenv
openai[datalib] openai[datalib]