-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make fastapi a regular dependency #243
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
{ | ||
"name": "Debug examples/fastapi", | ||
"type": "python", | ||
"request": "launch", | ||
"module": "uvicorn", | ||
"args": [ | ||
"main:app", | ||
"--app-dir", | ||
"${workspaceFolder}/examples/fastapi/arcade_example_fastapi", | ||
"--port", | ||
"8002" | ||
], | ||
"jinja": true, | ||
"justMyCode": true, | ||
"cwd": "${workspaceFolder}/examples/fastapi/arcade_example_fastapi" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cleanup. The fastapi example was removed a while ago.
{ | ||
"name": "Debug `arcade workerup --no-auth`", | ||
"type": "python", | ||
"type": "debugpy", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type: python
is being deprecated in favor of type: debugpy
See https://devblogs.microsoft.com/python/python-in-visual-studio-code-february-2024-release/
@@ -29,8 +13,8 @@ | |||
"cwd": "${workspaceFolder}" | |||
}, | |||
{ | |||
"name": "Debug `arcade chat -s -d -h localhost`", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cleanup: not actually streaming
@@ -1,6 +1,6 @@ | |||
[tool.poetry] | |||
name = "arcade-ai" | |||
version = "1.0.1" | |||
version = "1.1.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since most people installed as pip install 'arcade-ai[fastapi]'
I think it might be okay to only make this a minor release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -214,7 +214,7 @@ def evaluate(self, expected: str, actual: str) -> dict[str, float | bool]: | |||
from sklearn.metrics.pairwise import cosine_similarity | |||
except ImportError: | |||
raise ImportError( | |||
"Use `pip install arcade[evals]` to install the required dependencies for similarity metrics." | |||
"Use `pip install 'arcade-ai[evals]'` to install the required dependencies for similarity metrics." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 🙏
PR Description
Changes
pip install 'arcade-ai[fastapi]'
topip install arcade-ai
.In other words, FastAPI is now a required dependecy of arcade-ai.
Additionally, I snuck in some minor cleanup changes.