mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-28 08:49:51 +00:00
37 lines
1.3 KiB
Diff
37 lines
1.3 KiB
Diff
diff --git a/kserve/protocol/rest/openai/types/__init__.py b/kserve/protocol/rest/openai/types/__init__.py
|
|
index d70e258..f1313dd 100644
|
|
--- a/kserve/protocol/rest/openai/types/__init__.py
|
|
+++ b/kserve/protocol/rest/openai/types/__init__.py
|
|
@@ -31,8 +31,8 @@ from vllm.entrypoints.openai.completion.protocol import (
|
|
CompletionRequest,
|
|
CompletionResponse as Completion,
|
|
)
|
|
-from vllm.entrypoints.openai.engine.protocol import (
|
|
- DeltaMessage as ChoiceDelta,
|
|
+from vllm.entrypoints.generate.base.protocol import DeltaMessage as ChoiceDelta
|
|
+from vllm.entrypoints.serve.engine.protocol import (
|
|
UsageInfo,
|
|
ModelCard as Model,
|
|
ModelList,
|
|
@@ -47,15 +47,17 @@ from vllm.entrypoints.pooling.scoring.protocol import (
|
|
RerankRequest,
|
|
RerankResponse as Rerank,
|
|
)
|
|
-from vllm.entrypoints.chat_utils import (
|
|
+from vllm.renderers.chat_utils import (
|
|
ChatCompletionContentPartParam,
|
|
CustomChatCompletionMessageParam,
|
|
ChatCompletionMessageParam,
|
|
- ChatCompletionToolMessageParam,
|
|
ChatCompletionContentPartTextParam,
|
|
- ChatCompletionAssistantMessageParam,
|
|
ConversationMessage,
|
|
)
|
|
+from openai.types.chat import (
|
|
+ ChatCompletionAssistantMessageParam,
|
|
+ ChatCompletionToolMessageParam,
|
|
+)
|
|
|
|
from typing import Optional
|
|
from pydantic import BaseModel, Field
|