Skip to content

Commit

Permalink
Merge branch 'feat/model-runtime' into deploy/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
guchenhe committed Jan 2, 2024
2 parents 293e0b4 + 7777c34 commit d558a8d
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
from decimal import Decimal
import requests

from core.model_runtime.entities.common_entities import I18nObject
from core.model_runtime.entities.llm_entities import LLMMode
from core.model_runtime.entities.model_entities import AIModelEntity, DefaultParameterName, \
FetchFrom, ModelPropertyKey, ModelType, ParameterRule, ParameterType, PriceConfig

from core.model_runtime.errors.invoke import InvokeConnectionError, InvokeServerUnavailableError, \
InvokeRateLimitError, InvokeAuthorizationError, InvokeBadRequestError, InvokeError

Expand Down Expand Up @@ -35,8 +41,6 @@ def _invoke_error_mapping(self) -> dict[type[InvokeError], list[type[Exception]]
requests.exceptions.ReadTimeout # Timeout
]
}
<<<<<<< Updated upstream
=======

def get_customizable_model_schema(self, model: str, credentials: dict) -> AIModelEntity:
"""
Expand Down Expand Up @@ -120,4 +124,3 @@ def get_customizable_model_schema(self, model: str, credentials: dict) -> AIMode
raise ValueError(f"Unknown completion type {credentials['completion_type']}")

return entity
>>>>>>> Stashed changes

0 comments on commit d558a8d

Please sign in to comment.