Add Referer: scolta-python header to Amazee control-plane requests#19
Merged
Conversation
Port of tag1consulting/scolta-php#203 by @dan2k3k4. Co-authored-by: dan2k3k4 <158704+dan2k3k4@users.noreply.github.com>
dan2k3k4
approved these changes
Jun 18, 2026
| (`src/scolta/ai/amazee/client.py`).** The `_post`/`_get` helpers that hit | ||
| `api.amazee.ai` now send `Referer: scolta-python` so the Amazee backend can | ||
| attribute control-plane traffic to this SDK. Port of @dan2k3k4's scolta-php | ||
| #203 (issue #202) with the package-specific value. The per-tenant LiteLLM |
Contributor
There was a problem hiding this comment.
Since the issue is in a different repo, it likely needs to be wrapped and linked else Github will link to issues within this repo. Not sure if adding the org/repo before the # would work automatically.
15 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
Referer: scolta-pythonheader to the Amazee control-plane HTTP helpers (_post/_get) so api.amazee.ai can attribute requests to this SDK.Port of @dan2k3k4's tag1consulting/scolta-php#203 (issue tag1consulting/scolta-php#202), with the package-specific value
scolta-python. Thanks to @dan2k3k4 for the original contribution.Scope: only the two helpers that hit api.amazee.ai. The per-tenant LiteLLM calls (
get_available_models,validate_token) target the tenantlitellm_api_urland are unchanged.Tested:
uv run pytestanduv run ruff check .pass; added a test asserting the header on a POST (provision_trial) and a GET (list_regions).