Skip to content
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

Merged
merged 2 commits into from
Feb 10, 2025
Merged

Make fastapi a regular dependency #243

merged 2 commits into from
Feb 10, 2025

Conversation

EricGustin
Copy link
Member

@EricGustin EricGustin commented Feb 6, 2025

PR Description

Changes pip install 'arcade-ai[fastapi]' to pip install arcade-ai.
In other words, FastAPI is now a required dependecy of arcade-ai.

Additionally, I snuck in some minor cleanup changes.

Copy link

codecov bot commented Feb 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

Comment on lines -4 to -19
{
"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"
},
Copy link
Member Author

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",
Copy link
Member Author

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`",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cleanup: not actually streaming

@EricGustin EricGustin marked this pull request as ready for review February 6, 2025 22:51
@@ -1,6 +1,6 @@
[tool.poetry]
name = "arcade-ai"
version = "1.0.1"
version = "1.1.0"
Copy link
Member Author

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.

Copy link
Collaborator

@nbarbettini nbarbettini left a 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."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🙏

@EricGustin EricGustin merged commit 1908681 into main Feb 10, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants