mirror of
https://github.com/wassname/vllm.git
synced 2026-09-09 11:40:01 +08:00
[Bugfix] Fix request cancellation without polling (#11190)
This commit is contained in:
+5
-6
@@ -163,12 +163,11 @@ class RemoteOpenAIServer:
|
||||
api_key=self.DUMMY_API_KEY,
|
||||
)
|
||||
|
||||
def get_async_client(self):
|
||||
return openai.AsyncOpenAI(
|
||||
base_url=self.url_for("v1"),
|
||||
api_key=self.DUMMY_API_KEY,
|
||||
max_retries=0,
|
||||
)
|
||||
def get_async_client(self, **kwargs):
|
||||
return openai.AsyncOpenAI(base_url=self.url_for("v1"),
|
||||
api_key=self.DUMMY_API_KEY,
|
||||
max_retries=0,
|
||||
**kwargs)
|
||||
|
||||
|
||||
def _test_completion(
|
||||
|
||||
Reference in New Issue
Block a user