The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
vertex testing use pathrise-convert-1606954137718
Ishaan Jaff137879ffea9c
diff --git a/tests/batches_tests/adroit-crow-413218-bc47f303efc9.json b/tests/batches_tests/adroit-crow-413218-bc47f303efc9.jsonindex e2fd8512b19..7e02c821360 100644--- a/tests/batches_tests/adroit-crow-413218-bc47f303efc9.json+++ b/tests/batches_tests/adroit-crow-413218-bc47f303efc9.json@@ -1,13 +1,13 @@{"type": "service_account",- "project_id": "adroit-crow-413218",+ "project_id": "pathrise-convert-1606954137718","private_key_id": "","private_key": "",- "client_email": "[email protected]",+ "client_email": "test-adroit-crow@pathrise-convert-1606954137718.iam.gserviceaccount.com","client_id": "104886546564708740969","auth_uri": "https://accounts.google.com/o/oauth2/auth","token_uri": "https://oauth2.googleapis.com/token","auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",- "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/test-adroit-crow%40adroit-crow-413218.iam.gserviceaccount.com",+ "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/test-adroit-crow%40pathrise-convert-1606954137718.iam.gserviceaccount.com","universe_domain": "googleapis.com"}diff --git a/tests/batches_tests/test_fine_tuning_api.py b/tests/batches_tests/test_fine_tuning_api.pyindex dbeaf7a48dd..74e3177283c 100644--- a/tests/batches_tests/test_fine_tuning_api.py+++ b/tests/batches_tests/test_fine_tuning_api.py@@ -491,7 +491,7 @@ async def test_create_vertex_fine_tune_jobs():model="gemini-1.0-pro-002",custom_llm_provider="vertex_ai",training_file="gs://cloud-samples-data/ai-platform/generative_ai/sft_train_data.jsonl",- vertex_project="adroit-crow-413218",+ vertex_project="pathrise-convert-1606954137718",vertex_location="us-central1",vertex_credentials=vertex_credentials,)diff --git a/tests/batches_tests/test_openai_batches_and_files.py b/tests/batches_tests/test_openai_batches_and_files.pyindex 447126f231e..b10a77d0a48 100644--- a/tests/batches_tests/test_openai_batches_and_files.py+++ b/tests/batches_tests/test_openai_batches_and_files.py@@ -34,7 +34,7 @@ def load_vertex_ai_credentials():print("loading vertex ai credentials")os.environ["GCS_FLUSH_INTERVAL"] = "1"filepath = os.path.dirname(os.path.abspath(__file__))- vertex_key_path = filepath + "/adroit-crow-413218-bc47f303efc9.json"+ vertex_key_path = filepath + "/pathrise-convert-1606954137718-bc47f303efc9.json"# Read the existing content of the file or create an empty dictionarytry:diff --git a/tests/image_gen_tests/test_image_generation.py b/tests/image_gen_tests/test_image_generation.pyindex bad6e4b72fc..544f25bc67f 100644--- a/tests/image_gen_tests/test_image_generation.py+++ b/tests/image_gen_tests/test_image_generation.py@@ -112,7 +112,7 @@ class TestVertexImageGeneration(BaseImageGenTest):litellm.in_memory_llm_clients_cache = InMemoryCache()return {"model": "vertex_ai/imagegeneration@006",- "vertex_ai_project": "adroit-crow-413218",+ "vertex_ai_project": "pathrise-convert-1606954137718","vertex_ai_location": "us-central1","n": 1,}diff --git a/tests/load_tests/test_vertex_embeddings_load_test.py b/tests/load_tests/test_vertex_embeddings_load_test.pyindex 9ff961d7350..eb440c94377 100644--- a/tests/load_tests/test_vertex_embeddings_load_test.py+++ b/tests/load_tests/test_vertex_embeddings_load_test.py@@ -59,7 +59,7 @@ def load_vertex_ai_credentials():async def create_async_vertex_embedding_task():load_vertex_ai_credentials()- base_url = "https://exampleopenaiendpoint-production.up.railway.app/v1/projects/adroit-crow-413218/locations/us-central1/publishers/google/models/embedding-gecko-001:predict"+ base_url = "https://exampleopenaiendpoint-production.up.railway.app/v1/projects/pathrise-convert-1606954137718/locations/us-central1/publishers/google/models/embedding-gecko-001:predict"embedding_args = {"model": "vertex_ai/textembedding-gecko","input": "This is a test sentence for embedding.",diff --git a/tests/load_tests/test_vertex_load_tests.py b/tests/load_tests/test_vertex_load_tests.pyindex e9dd849b544..9130873b970 100644--- a/tests/load_tests/test_vertex_load_tests.py+++ b/tests/load_tests/test_vertex_load_tests.py@@ -118,7 +118,7 @@ async def make_async_calls(message_type="text"):def create_async_task(message_type):- base_url = "https://exampleopenaiendpoint-production.up.railway.app/v1/projects/adroit-crow-413218/locations/us-central1/publishers/google/models/gemini-1.0-pro-vision-001"+ base_url = "https://exampleopenaiendpoint-production.up.railway.app/v1/projects/pathrise-convert-1606954137718/locations/us-central1/publishers/google/models/gemini-1.0-pro-vision-001"if message_type == "text":messages = [{"role": "user", "content": "hi"}]diff --git a/tests/local_testing/adroit-crow-413218-bc47f303efc9.json b/tests/local_testing/adroit-crow-413218-bc47f303efc9.jsonindex e2fd8512b19..7e02c821360 100644--- a/tests/local_testing/adroit-crow-413218-bc47f303efc9.json+++ b/tests/local_testing/adroit-crow-413218-bc47f303efc9.json@@ -1,13 +1,13 @@{"type": "service_account",- "project_id": "adroit-crow-413218",+ "project_id": "pathrise-convert-1606954137718","private_key_id": "","private_key": "",- "client_email": "[email protected]",+ "client_email": "test-adroit-crow@pathrise-convert-1606954137718.iam.gserviceaccount.com","client_id": "104886546564708740969","auth_uri": "https://accounts.google.com/o/oauth2/auth","token_uri": "https://oauth2.googleapis.com/token","auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",- "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/test-adroit-crow%40adroit-crow-413218.iam.gserviceaccount.com",+ "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/test-adroit-crow%40pathrise-convert-1606954137718.iam.gserviceaccount.com","universe_domain": "googleapis.com"}diff --git a/tests/local_testing/test_gcs_bucket.py b/tests/local_testing/test_gcs_bucket.pyindex fa5003ca7a4..75a48000645 100644--- a/tests/local_testing/test_gcs_bucket.py+++ b/tests/local_testing/test_gcs_bucket.py@@ -30,7 +30,7 @@ def load_vertex_ai_credentials():print("loading vertex ai credentials")os.environ["GCS_FLUSH_INTERVAL"] = "1"filepath = os.path.dirname(os.path.abspath(__file__))- vertex_key_path = filepath + "/adroit-crow-413218-bc47f303efc9.json"+ vertex_key_path = filepath + "/pathrise-convert-1606954137718-bc47f303efc9.json"# Read the existing content of the file or create an empty dictionarytry:diff --git a/tests/local_testing/test_streaming.py b/tests/local_testing/test_streaming.pyindex 2a2e9d7fd98..1debd828cb6 100644--- a/tests/local_testing/test_streaming.py+++ b/tests/local_testing/test_streaming.py@@ -1113,7 +1113,7 @@ def test_vertex_ai_stream(provider):load_vertex_ai_credentials()litellm.set_verbose = True- litellm.vertex_project = "adroit-crow-413218"+ litellm.vertex_project = "pathrise-convert-1606954137718"import randomtest_models = ["gemini-1.5-pro"]diff --git a/tests/old_proxy_tests/tests/test_vertex_sdk_forward_headers.py b/tests/old_proxy_tests/tests/test_vertex_sdk_forward_headers.pyindex a5e59d5a137..f236e3f81a9 100644--- a/tests/old_proxy_tests/tests/test_vertex_sdk_forward_headers.py+++ b/tests/old_proxy_tests/tests/test_vertex_sdk_forward_headers.py@@ -8,7 +8,7 @@# LITE_LLM_ENDPOINT = "http://localhost:4000"# vertexai.init(-# project="adroit-crow-413218",+# project="pathrise-convert-1606954137718",# location="us-central1",# api_endpoint=f"{LITE_LLM_ENDPOINT}/vertex-ai",# api_transport="rest",diff --git a/tests/old_proxy_tests/tests/test_vtx_sdk_embedding.py b/tests/old_proxy_tests/tests/test_vtx_sdk_embedding.pyindex 285743fca6e..ff7f835a8da 100644--- a/tests/old_proxy_tests/tests/test_vtx_sdk_embedding.py+++ b/tests/old_proxy_tests/tests/test_vtx_sdk_embedding.py@@ -37,7 +37,7 @@ class CredentialsWrapper(Credentials):credentials = CredentialsWrapper(token=LITELLM_PROXY_API_KEY)vertexai.init(- project="adroit-crow-413218",+ project="pathrise-convert-1606954137718",location="us-central1",api_endpoint=LITELLM_PROXY_BASE,credentials=credentials,diff --git a/tests/pass_through_tests/test_local_vertex.js b/tests/pass_through_tests/test_local_vertex.jsindex 9ee603e7a06..c0971543dad 100644--- a/tests/pass_through_tests/test_local_vertex.js+++ b/tests/pass_through_tests/test_local_vertex.js@@ -3,7 +3,7 @@ const { VertexAI, RequestOptions } = require('@google-cloud/vertexai');const vertexAI = new VertexAI({- project: 'adroit-crow-413218',+ project: 'pathrise-convert-1606954137718',location: 'us-central1',apiEndpoint: "127.0.0.1:4000/vertex-ai"});diff --git a/tests/pass_through_tests/test_vertex.test.js b/tests/pass_through_tests/test_vertex.test.jsindex dc457c68a95..c426c3de307 100644--- a/tests/pass_through_tests/test_vertex.test.js+++ b/tests/pass_through_tests/test_vertex.test.js@@ -61,7 +61,7 @@ beforeAll(() => {describe('Vertex AI Tests', () => {test('should successfully generate content from Vertex AI', async () => {const vertexAI = new VertexAI({- project: 'adroit-crow-413218',+ project: 'pathrise-convert-1606954137718',location: 'us-central1',apiEndpoint: "localhost:4000/vertex-ai"});@@ -100,7 +100,7 @@ describe('Vertex AI Tests', () => {test('should successfully generate non-streaming content from Vertex AI', async () => {- const vertexAI = new VertexAI({project: 'adroit-crow-413218', location: 'us-central1', apiEndpoint: "localhost:4000/vertex-ai"});+ const vertexAI = new VertexAI({project: 'pathrise-convert-1606954137718', location: 'us-central1', apiEndpoint: "localhost:4000/vertex-ai"});const customHeaders = new Headers({"x-litellm-api-key": "sk-1234"});const requestOptions = {customHeaders: customHeaders};const generativeModel = vertexAI.getGenerativeModel({model: 'gemini-1.0-pro'}, requestOptions);diff --git a/tests/pass_through_tests/test_vertex_ai.py b/tests/pass_through_tests/test_vertex_ai.pyindex 99b513e828b..b9a31652695 100644--- a/tests/pass_through_tests/test_vertex_ai.py+++ b/tests/pass_through_tests/test_vertex_ai.py@@ -97,7 +97,7 @@ async def test_basic_vertex_ai_pass_through_with_spendlog():load_vertex_ai_credentials()vertexai.init(- project="adroit-crow-413218",+ project="pathrise-convert-1606954137718",location="us-central1",api_endpoint=f"{LITE_LLM_ENDPOINT}/vertex_ai",api_transport="rest",@@ -129,7 +129,7 @@ async def test_basic_vertex_ai_pass_through_streaming_with_spendlog():load_vertex_ai_credentials()vertexai.init(- project="adroit-crow-413218",+ project="pathrise-convert-1606954137718",location="us-central1",api_endpoint=f"{LITE_LLM_ENDPOINT}/vertex_ai",api_transport="rest",@@ -168,7 +168,7 @@ async def test_vertex_ai_pass_through_endpoint_context_caching():# load_vertex_ai_credentials()vertexai.init(- project="adroit-crow-413218",+ project="pathrise-convert-1606954137718",location="us-central1",api_endpoint=f"{LITE_LLM_ENDPOINT}/vertex_ai",api_transport="rest",diff --git a/tests/pass_through_tests/test_vertex_with_spend.test.js b/tests/pass_through_tests/test_vertex_with_spend.test.jsindex d49b1eda2ec..c3429314979 100644--- a/tests/pass_through_tests/test_vertex_with_spend.test.js+++ b/tests/pass_through_tests/test_vertex_with_spend.test.js@@ -69,7 +69,7 @@ beforeAll(() => {describe('Vertex AI Tests', () => {test('should successfully generate non-streaming content with tags', async () => {const vertexAI = new VertexAI({- project: 'adroit-crow-413218',+ project: 'pathrise-convert-1606954137718',location: 'us-central1',apiEndpoint: "127.0.0.1:4000/vertex_ai"});@@ -125,7 +125,7 @@ describe('Vertex AI Tests', () => {test('should successfully generate streaming content with tags', async () => {const vertexAI = new VertexAI({- project: 'adroit-crow-413218',+ project: 'pathrise-convert-1606954137718',location: 'us-central1',apiEndpoint: "127.0.0.1:4000/vertex_ai"});diff --git a/tests/pass_through_unit_tests/test_unit_test_streaming.py b/tests/pass_through_unit_tests/test_unit_test_streaming.pyindex 61b71b56dd3..710687acc86 100644--- a/tests/pass_through_unit_tests/test_unit_test_streaming.py+++ b/tests/pass_through_unit_tests/test_unit_test_streaming.py@@ -34,7 +34,7 @@ async def aiter_mock(iterable):[(EndpointType.VERTEX_AI,- "v1/projects/adroit-crow-413218/locations/us-central1/publishers/google/models/gemini-1.0-pro:generateContent",+ "v1/projects/pathrise-convert-1606954137718/locations/us-central1/publishers/google/models/gemini-1.0-pro:generateContent",),(EndpointType.ANTHROPIC, "/v1/messages"),],diff --git a/tests/proxy_unit_tests/adroit-crow-413218-bc47f303efc9.json b/tests/proxy_unit_tests/adroit-crow-413218-bc47f303efc9.jsonindex e2fd8512b19..7e02c821360 100644--- a/tests/proxy_unit_tests/adroit-crow-413218-bc47f303efc9.json+++ b/tests/proxy_unit_tests/adroit-crow-413218-bc47f303efc9.json@@ -1,13 +1,13 @@{"type": "service_account",- "project_id": "adroit-crow-413218",+ "project_id": "pathrise-convert-1606954137718","private_key_id": "","private_key": "",- "client_email": "[email protected]",+ "client_email": "test-adroit-crow@pathrise-convert-1606954137718.iam.gserviceaccount.com","client_id": "104886546564708740969","auth_uri": "https://accounts.google.com/o/oauth2/auth","token_uri": "https://oauth2.googleapis.com/token","auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",- "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/test-adroit-crow%40adroit-crow-413218.iam.gserviceaccount.com",+ "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/test-adroit-crow%40pathrise-convert-1606954137718.iam.gserviceaccount.com","universe_domain": "googleapis.com"}diff --git a/tests/proxy_unit_tests/test_proxy_server.py b/tests/proxy_unit_tests/test_proxy_server.pyindex 7027330db60..4a9320c2ada 100644--- a/tests/proxy_unit_tests/test_proxy_server.py+++ b/tests/proxy_unit_tests/test_proxy_server.py@@ -1604,7 +1604,7 @@ async def test_add_callback_via_key_litellm_pre_call_utils_gcs_bucket("callback_type": callback_type,"callback_vars": {"gcs_bucket_name": "key-logging-project1",- "gcs_path_service_account": "adroit-crow-413218-a956eef1a2a8.json",+ "gcs_path_service_account": "pathrise-convert-1606954137718-a956eef1a2a8.json",},}]@@ -1653,7 +1653,8 @@ async def test_add_callback_via_key_litellm_pre_call_utils_gcs_bucket(assert new_data["gcs_bucket_name"] == "key-logging-project1"assert "gcs_path_service_account" in new_dataassert (- new_data["gcs_path_service_account"] == "adroit-crow-413218-a956eef1a2a8.json"+ new_data["gcs_path_service_account"]+ == "pathrise-convert-1606954137718-a956eef1a2a8.json")if expected_success_callbacks:diff --git a/tests/secret_manager_tests/test_secret_manager.py b/tests/secret_manager_tests/test_secret_manager.pyindex 6d5e3a1affb..fd1adeb9648 100644--- a/tests/secret_manager_tests/test_secret_manager.py+++ b/tests/secret_manager_tests/test_secret_manager.py@@ -244,7 +244,7 @@ def test_google_secret_manager():"""Test that we can get a secret from Google Secret Manager"""- os.environ["GOOGLE_SECRET_MANAGER_PROJECT_ID"] = "adroit-crow-413218"+ os.environ["GOOGLE_SECRET_MANAGER_PROJECT_ID"] = "pathrise-convert-1606954137718"from litellm.secret_managers.google_secret_manager import GoogleSecretManager@@ -270,7 +270,7 @@ def test_google_secret_manager_read_in_memory():from litellm.secret_managers.google_secret_manager import GoogleSecretManagerload_vertex_ai_credentials()- os.environ["GOOGLE_SECRET_MANAGER_PROJECT_ID"] = "adroit-crow-413218"+ os.environ["GOOGLE_SECRET_MANAGER_PROJECT_ID"] = "pathrise-convert-1606954137718"secret_manager = GoogleSecretManager()secret_manager.cache.cache_dict["UNIQUE_KEY"] = Nonesecret_manager.cache.cache_dict["UNIQUE_KEY_2"] = "lite-llm"