mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
(test) deployed proxy key/gen
This commit is contained in:
parent
cdeb864e28
commit
47f56f0d19
1 changed files with 2 additions and 1 deletions
|
|
@ -31,6 +31,7 @@ def test_add_new_key():
|
|||
headers = {"Authorization": f"Bearer {token}"}
|
||||
|
||||
staging_endpoint = "https://litellm-litellm-pr-1376.up.railway.app"
|
||||
main_endpoint = "https://litellm-staging.up.railway.app"
|
||||
|
||||
# Your bearer token
|
||||
token = os.getenv("PROXY_MASTER_KEY")
|
||||
|
|
@ -39,7 +40,7 @@ def test_add_new_key():
|
|||
|
||||
# Make a request to the staging endpoint
|
||||
response = requests.post(
|
||||
staging_endpoint + "/key/generate", json=test_data, headers=headers
|
||||
main_endpoint + "/key/generate", json=test_data, headers=headers
|
||||
)
|
||||
|
||||
print(f"response: {response.text}")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue