Skip to content

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]

test_completion_bedrock_titan_null_response

Ishaan Jaffer5873cd4a3263
diff --git a/tests/local_testing/test_completion.py b/tests/local_testing/test_completion.py
index d255b7a5de5..8d815829d40 100644
--- a/tests/local_testing/test_completion.py
+++ b/tests/local_testing/test_completion.py
@@ -3100,31 +3100,6 @@ async def test_completion_bedrock_httpx_models(sync_mode, model):
pytest.fail(f"An error occurred - {str(e)}")
-def test_completion_bedrock_titan_null_response():
- try:
- # amazon.titan-text-lite-v1 is deprecated, using titan-text-express-v1 instead
- response = completion(
- model="bedrock/amazon.titan-text-express-v1",
- messages=[
- {
- "role": "user",
- "content": "Hello!",
- },
- {
- "role": "assistant",
- "content": "Hello! How can I help you?",
- },
- {
- "role": "user",
- "content": "What model are you?",
- },
- ],
- )
- # Add any assertions here to check the response
- print(f"response: {response}")
- except Exception as e:
- pytest.fail(f"An error occurred - {str(e)}")
-
# test_completion_bedrock_titan()