Skip to content

Commit 24238fa

Browse files
fix(unittest): fit http llm (#5)
1 parent 991584d commit 24238fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oxygent/test/unittest/test_http_llm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async def passthrough(self, req: OxyRequest):
3434
name="http_llm",
3535
desc="UT HTTP LLM",
3636
api_key="sk-123",
37-
base_url="https://api.fake.com/v1/chat",
37+
base_url="https://api.fake.com/v1/chat/completions",
3838
model_name="gpt-ut",
3939
llm_params={"temperature": 0.3},
4040
)
@@ -95,7 +95,7 @@ async def post(self, url, headers=None, json=None):
9595
assert resp.state is OxyState.COMPLETED
9696
assert resp.output == "Hi there!"
9797

98-
assert captured["url"] == "https://api.fake.com/v1/chat"
98+
assert captured["url"] == "https://api.fake.com/v1/chat/completions"
9999
assert captured["headers"]["Authorization"] == "Bearer sk-123"
100100

101101
pay = captured["payload"]

0 commit comments

Comments
 (0)