-
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
Drop default api url for host of clients #209
Conversation
@@ -217,7 +210,7 @@ def test_explanation_with_token_granularities_oom_regression(sync_client: Client | |||
|
|||
### Response:""" | |||
target_text = " India won the Battle of Waterloo." | |||
model_name = "luminous-base-control" | |||
model_name = "luminous-base" |
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.
Why move away from control?
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.
as it is (currently at least) not available in our new environment
docs/source/index.rst
Outdated
@@ -18,7 +18,7 @@ Synchronous client. | |||
from aleph_alpha_client import Client, CompletionRequest, Prompt | |||
import os | |||
|
|||
client = Client(token=os.getenv("AA_TOKEN")) | |||
client = Client(token=os.getenv("AA_TOKEN"), host="https://inference-api.your-domain.com") |
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.
Why not get the host from the .env, too?
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.
good catch. Probably the better approach, will update.
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.
done
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.
Easy to grasp MR and nice cleanup on the way.
Only two very minor questions.
@@ -24,7 +24,7 @@ jobs: | |||
poetry run mypy tests --ignore-missing-imports | |||
- name: Run tests | |||
run: | | |||
poetry run pytest | |||
poetry run pytest --color=yes |
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.
Very important!
No description provided.