chore: fix unnecessary string concatation in single line (#8311)

This commit is contained in:
Bowen Liang 2024-09-13 14:24:49 +08:00 • committed by GitHub
commit 6613b8f2e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 46 additions and 49 deletions

View file

@ -181,7 +181,7 @@ class DatasetService:
"in the Settings -> Model Provider."
)
except ProviderTokenNotInitError as ex:
raise ValueError(f"The dataset in unavailable, due to: " f"{ex.description}")
raise ValueError(f"The dataset in unavailable, due to: {ex.description}")
@staticmethod
def check_embedding_model_setting(tenant_id: str, embedding_model_provider: str, embedding_model: str):
@ -195,10 +195,10 @@ class DatasetService:
)
except LLMBadRequestError:
raise ValueError(
"No Embedding Model available. Please configure a valid provider " "in the Settings -> Model Provider."
"No Embedding Model available. Please configure a valid provider in the Settings -> Model Provider."
)
except ProviderTokenNotInitError as ex:
raise ValueError(f"The dataset in unavailable, due to: " f"{ex.description}")
raise ValueError(f"The dataset in unavailable, due to: {ex.description}")
@staticmethod
def update_dataset(dataset_id, data, user):