[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
@@ -1,11 +1,8 @@
|
|||||||
# Copyright (C) 2024 Intel Corporation
|
# Copyright (C) 2024 Intel Corporation
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
from fastapi import Request
|
|
||||||
from fastapi.responses import StreamingResponse
|
|
||||||
|
|
||||||
from comps.cores.mega.gateway import Gateway
|
|
||||||
from comps.cores.mega.constants import MegaServiceEndpoint
|
from comps.cores.mega.constants import MegaServiceEndpoint
|
||||||
|
from comps.cores.mega.gateway import Gateway
|
||||||
from comps.cores.proto.api_protocol import (
|
from comps.cores.proto.api_protocol import (
|
||||||
ChatCompletionRequest,
|
ChatCompletionRequest,
|
||||||
ChatCompletionResponse,
|
ChatCompletionResponse,
|
||||||
@@ -13,11 +10,9 @@ from comps.cores.proto.api_protocol import (
|
|||||||
ChatMessage,
|
ChatMessage,
|
||||||
UsageInfo,
|
UsageInfo,
|
||||||
)
|
)
|
||||||
from comps.cores.proto.docarray import (
|
from comps.cores.proto.docarray import LLMParams, RerankerParms, RetrieverParms
|
||||||
LLMParams,
|
from fastapi import Request
|
||||||
RerankerParms,
|
from fastapi.responses import StreamingResponse
|
||||||
RetrieverParms
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class ChatQnAGateway(Gateway):
|
class ChatQnAGateway(Gateway):
|
||||||
|
|||||||
Reference in New Issue
Block a user