Skip to content

Commit ebe45d9

Browse files
test agents with new docker setup
1 parent 7d2124b commit ebe45d9

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

test/vllm/ec2/utils/test_agents.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,16 @@ class AnalysisResult(BaseModel):
2323

2424

2525
def test_direct_completion():
26-
"""Test direct API calls to VLLM"""
2726
client = OpenAI(
2827
api_key=OPENAI_API_KEY,
2928
base_url=OPENAI_API_BASE,
3029
)
3130

31+
prompt = "What are the main benefits of using VLLM for inference?"
32+
3233
chat_response = client.completions.create(
3334
model=MODEL_NAME,
34-
prompt=[
35-
{
36-
"role": "system",
37-
"content": "You are a helpful assistant.",
38-
},
39-
{
40-
"role": "user",
41-
"content": "What are the main benefits of using VLLM for inference?",
42-
},
43-
],
35+
prompt=prompt,
4436
temperature=0.7,
4537
max_tokens=512,
4638
)

0 commit comments

Comments
 (0)