From 7a30e4ebe76baf758c62e54efb024654225fc483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=86=E9=80=8A?= Date: Fri, 25 Oct 2024 14:45:36 +0800 Subject: [PATCH] Fix int value --- src/pai_rag/integrations/llms/pai/llm_config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pai_rag/integrations/llms/pai/llm_config.py b/src/pai_rag/integrations/llms/pai/llm_config.py index 7e8d23dc..e96581b4 100644 --- a/src/pai_rag/integrations/llms/pai/llm_config.py +++ b/src/pai_rag/integrations/llms/pai/llm_config.py @@ -1,5 +1,5 @@ from typing import Literal -from pydantic import BaseModel +from pydantic import BaseModel, ConfigDict from enum import Enum from llama_index.core.constants import DEFAULT_TEMPERATURE @@ -159,6 +159,8 @@ class PaiEasLlmConfig(PaiBaseLlmConfig): token: str model: str = "default" + model_config = ConfigDict(coerce_numbers_to_str=True) + class DashScopeMultiModalLlmConfig(DashScopeLlmConfig): model: str = "qwen-vl-max"