Skip to content

Commit d107368

Browse files
committed
Fixes testing
1 parent a269c04 commit d107368

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

sample_data/prompt.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,4 @@ Answer the following message to the user.
2424
[[endpoint]]
2525
path = "/lerolero"
2626
model_name = "lerolero"
27-
model_class_path = "dialog.llm.agents.lcel.runnable"
28-
29-
[[endpoint]]
30-
path = "/lerolero2"
31-
model_name = "lerolero2"
32-
model_class_path = "dialog.llm.agents.default.DialogLLM"
27+
model_class_path = "dialog.llm.agents.lcel.runnable"

src/tests/test_views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ def test_customized_openai_chat_completion_response_stream_false(client, llm_moc
8080
def test_multiple_models_load_on_setting_override(client_with_settings_override):
8181
response = client_with_settings_override.get("/openapi.json")
8282
assert response.status_code == 200
83-
assert "/custom_model/chat/{chat_id}" in list(response.json().get("paths").keys())
84-
assert "/custom_model/ask" in list(response.json().get("paths").keys())
83+
assert "/lerolero/chat/{chat_id}" in list(response.json().get("paths").keys())
84+
assert "/lerolero/ask" in list(response.json().get("paths").keys())
8585

8686
def test_multiple_models_are_available_on_model_listing_for_webui(client_with_settings_override):
8787
response = client_with_settings_override.get("/openai/models")

0 commit comments

Comments
 (0)