forked from instructor-ai/instructor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
128 lines (115 loc) · 3.27 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[tool.poetry]
name = "instructor"
version = "1.3.5"
description = "structured outputs for llm"
authors = ["Jason Liu <[email protected]>"]
license = "MIT"
readme = "README.md"
packages = [{ include = "instructor" }]
repository = "https://github.com/jxnl/instructor"
[tool.poetry.dependencies]
python = "^3.9"
openai = "^1.1.0"
pydantic = "^2.8.0"
docstring-parser = "^0.16"
typer = ">=0.9.0,<1.0.0"
rich = "^13.7.0"
aiohttp = "^3.9.1"
tenacity = "^8.4.1"
pydantic-core = "^2.18.0"
jiter = "^0.4.1"
# dependency versions for extras
fastapi = { version = "^0.109.2", optional = true }
redis = { version = "^5.0.1", optional = true }
diskcache = { version = "^5.6.3", optional = true }
pandas = { version = "^2.2.0", optional = true }
tabulate = { version = "^0.9.0", optional = true }
pydantic_extra_types = { version = "^2.6.0", optional = true }
litellm = { version = "^1.35.31", optional = true }
anthropic = { version = "^0.27.0", optional = true }
xmltodict = { version = "^0.13.0", optional = true }
groq = { version = "^0.4.2", optional = true }
cohere = { version = "^5.1.8", optional = true }
mistralai = { version = "^0.1.8", optional = true }
google-generativeai = { version = "^0.5.4", optional = true }
google-cloud-aiplatform = { version = "^1.53.0", optional = true }
jsonref = { version = "^1.1.0", optional = true }
[tool.poetry.extras]
anthropic = ["anthropic", "xmltodict"]
groq = ["groq"]
cohere = ["cohere"]
test-docs = [
"fastapi",
"redis",
"diskcache",
"pandas",
"tabulate",
"pydantic_extra_types",
"litellm",
"anthropic",
"groq",
"cohere",
"mistralai",
]
mistralai = ["mistralai"]
litellm = ["litellm"]
google-generativeai = ["google-generativeai"]
vertexai = ["google-cloud-aiplatform", "jsonref"]
[tool.poetry.scripts]
instructor = "instructor.cli.cli:app"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.0"
pytest-asyncio = "^0.21.1"
coverage = "^7.3.2"
pyright = "^1.1.360"
jsonref = "^1.1.0"
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.4.3"
mkdocs-material = { extras = ["imaging"], version = "^9.5.9" }
mkdocstrings = "^0.22.0"
mkdocstrings-python = "^1.1.2"
pytest-examples = "^0.0.10"
mkdocs-jupyter = "^0.24.6"
mkdocs-rss-plugin = "^1.12.0"
mkdocs-minify-plugin = "^0.8.0"
mkdocs-redirects = "^1.2.1"
[tool.poetry.group.anthropic.dependencies]
anthropic = "^0.27.0"
[tool.poetry.group.test-docs.dependencies]
fastapi = "^0.109.2"
redis = "^5.0.1"
diskcache = "^5.6.3"
pandas = "^2.2.0"
tabulate = "^0.9.0"
pydantic_extra_types = "^2.6.0"
litellm = "^1.35.31"
anthropic = "^0.27.0"
xmltodict = "^0.13.0"
groq = "^0.4.2"
phonenumbers = "^8.13.33"
cohere = "^5.1.8"
mistralai = "^0.1.8"
[tool.poetry.group.litellm.dependencies]
litellm = "^1.35.31"
[tool.poetry.group.google-generativeai.dependencies]
google-generativeai = "^0.5.4"
[tool.poetry.group.vertexai.dependencies]
google-cloud-aiplatform = "^1.53.0"
jsonref = "^1.1.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pyright]
include = ["instructor"]
exclude = [
"**/node_modules",
"**/__pycache__",
"src/experimental",
"src/typestubs",
"**/tests/**",
]
pythonVersion = "3.9"
typeCheckingMode = "strict"
# Allow "redundant" runtime type-checking.
reportUnnecessaryIsInstance = "none"
reportUnnecessaryTypeIgnoreComment = "error"