Add optional dependencies for anthropic and xmltodict (#519)

This commit is contained in:
Joe Petrantoni
2024-03-20 22:06:13 -04:00
committed by GitHub
parent ef2f8a6885
commit 496a6de4ff
+5 -3
View File
@@ -17,10 +17,12 @@ typer = "^0.9.0"
rich = "^13.7.0"
aiohttp = "^3.9.1"
tenacity = "^8.2.3"
anthropic = { version = "^0.18.1", optional = true }
xmltodict = { version = "^0.13.0", optional = true }
[tool.poetry.group.anthropic.dependencies]
anthropic = "^0.18.1"
xmltodict = "^0.13.0"
[tool.poetry.extras]
anthropic = ["anthropic", "xmltodict"]
[tool.poetry.scripts]
instructor = "instructor.cli.cli:app"