feat(core): APP use new SDK component (#1050)

This commit is contained in:
Fangyin Cheng
2024-01-10 10:39:04 +08:00
committed by GitHub
parent e11b72c724
commit fa8b5b190c
242 changed files with 2768 additions and 2163 deletions

View File

@@ -1,21 +1,22 @@
from contextlib import asynccontextmanager, contextmanager
from typing import Dict, Iterator, List, Tuple
import pytest
import pytest_asyncio
from contextlib import contextmanager, asynccontextmanager
from typing import List, Iterator, Dict, Tuple
from dbgpt.model.parameter import ModelParameters, ModelWorkerParameters, WorkerType
from dbgpt.core import ModelOutput, ModelMetadata
from dbgpt.model.cluster.worker_base import ModelWorker
from dbgpt.core import ModelMetadata, ModelOutput
from dbgpt.model.base import ModelInstance
from dbgpt.model.cluster.registry import EmbeddedModelRegistry, ModelRegistry
from dbgpt.model.cluster.worker.manager import (
WorkerManager,
ApplyFunction,
DeregisterFunc,
LocalWorkerManager,
RegisterFunc,
DeregisterFunc,
SendHeartbeatFunc,
ApplyFunction,
WorkerManager,
)
from dbgpt.model.base import ModelInstance
from dbgpt.model.cluster.registry import ModelRegistry, EmbeddedModelRegistry
from dbgpt.model.cluster.worker_base import ModelWorker
from dbgpt.model.parameter import ModelParameters, ModelWorkerParameters, WorkerType
@pytest.fixture