소스 검색

fix(tools): remove the undefined variable parameter_type (#9908)

zhuhao 5 달 전
부모
커밋
8bb5b943d7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      api/core/tools/entities/tool_entities.py

+ 1 - 1
api/core/tools/entities/tool_entities.py

@@ -204,7 +204,7 @@ class ToolParameter(BaseModel):
                         return str(value)
                         return str(value)
 
 
             except Exception:
             except Exception:
-                raise ValueError(f"The tool parameter value {value} is not in correct type of {parameter_type}.")
+                raise ValueError(f"The tool parameter value {value} is not in correct type.")
 
 
     class ToolParameterForm(Enum):
     class ToolParameterForm(Enum):
         SCHEMA = "schema"  # should be set while adding tool
         SCHEMA = "schema"  # should be set while adding tool