Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions tests/local_testing/test_amazing_vertex_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ async def test_get_response():
async def test_aavertex_ai_anthropic_async():
# load_vertex_ai_credentials()
try:

model = "claude-3-5-sonnet@20240620"

vertex_ai_project = "pathrise-convert-1606954137718"
Expand Down Expand Up @@ -351,7 +350,6 @@ def test_avertex_ai_stream():
@pytest.mark.flaky(retries=3, delay=1)
@pytest.mark.asyncio
async def test_async_vertexai_response_basic():

load_vertex_ai_credentials()
try:
user_message = "Hello, how are you?"
Expand Down Expand Up @@ -1382,7 +1380,6 @@ async def test_gemini_pro_json_schema_args_sent_httpx(
]
)
elif resp is not None:

assert resp.model == model.split("/")[1]


Expand Down Expand Up @@ -2291,6 +2288,8 @@ def test_prompt_factory_nested():
async def test_completion_fine_tuned_model():
load_vertex_ai_credentials()
mock_response = AsyncMock()
mock_response.headers = {}
mock_response.status_code = 200

def return_val():
return {
Expand Down Expand Up @@ -2326,7 +2325,6 @@ def return_val():
}

mock_response.json = return_val
mock_response.status_code = 200

expected_payload = {
"contents": [
Expand Down
Loading