mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-13 13:10:29 +00:00
refactor: Refactor proxy LLM (#1064)
This commit is contained in:
@@ -3,12 +3,13 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
from typing import List, Optional, TYPE_CHECKING
|
||||
from typing import TYPE_CHECKING, List, Optional
|
||||
|
||||
from dbgpt.util.singleton import Singleton
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from auto_gpt_plugin_template import AutoGPTPluginTemplate
|
||||
|
||||
from dbgpt.component import SystemApp
|
||||
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
from dbgpt._private.pydantic import Field, BaseModel
|
||||
from dbgpt._private.pydantic import BaseModel, Field
|
||||
|
||||
DEFAULT_CONTEXT_WINDOW = 3900
|
||||
DEFAULT_NUM_OUTPUTS = 256
|
||||
|
@@ -10,10 +10,10 @@ if pydantic.VERSION.startswith("1."):
|
||||
NonNegativeInt,
|
||||
PositiveFloat,
|
||||
PositiveInt,
|
||||
PrivateAttr,
|
||||
ValidationError,
|
||||
root_validator,
|
||||
validator,
|
||||
PrivateAttr,
|
||||
)
|
||||
else:
|
||||
PYDANTIC_VERSION = 2
|
||||
@@ -26,10 +26,10 @@ else:
|
||||
NonNegativeInt,
|
||||
PositiveFloat,
|
||||
PositiveInt,
|
||||
PrivateAttr,
|
||||
ValidationError,
|
||||
root_validator,
|
||||
validator,
|
||||
PrivateAttr,
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user