feat(config): default to WebSocket and migrate saved HTTP settings

This commit is contained in:
chenmingxuan committed 2026-11-04 17:45:52 +08:00
1 parent 2a3f43fb60
commit 04022f2eaf
18 files changed
+244 -58

No files matched your search

+1 -1
View File
@@ -123,7 +123,7 @@ async def transport_case(monkeypatch, tmp_path, request):
)
llm_service._ENDPOINT_BREAKER._states.clear()
llm_service._NON_STREAMING_ENDPOINTS.clear()
endpoint = ModelEndpoint(model_name="test-model", max_retries=0)
endpoint = ModelEndpoint(model_name="test-model", transport="http", max_retries=0)
model = ModelFactory.create_model(endpoint)
assert isinstance(model, ChatOpenAI)
yield SimpleNamespace(