Some more PowerBI pydantic and import fixes (#3461)

This commit is contained in:
Eduard van Valkenburg
2023-04-27 07:09:12 +02:00
committed by GitHub
parent ab749fa1bb
commit a3e3f26090
6 changed files with 25 additions and 31 deletions

View File

@@ -58,5 +58,5 @@ BAD_REQUEST_RESPONSE = (
"Bad request. Please ask the question_to_query_powerbi tool to provide the query."
)
BAD_REQUEST_RESPONSE_ESCALATED = "You already tried this, please try a different query."
SCHEMA_ERROR_RESPONSE = "Bad request, are you sure the table name is correct?"
UNAUTHORIZED_RESPONSE = "Unauthorized. Try changing your authentication, do not retry."

View File

@@ -147,8 +147,8 @@ class InputToQueryTool(BaseTool):
""" # noqa: E501
llm_chain: LLMChain
powerbi: PowerBIDataset = Field(exclude=True)
template: str = QUESTION_TO_QUERY
examples: str = DEFAULT_FEWSHOT_EXAMPLES
template: Optional[str] = QUESTION_TO_QUERY
examples: Optional[str] = DEFAULT_FEWSHOT_EXAMPLES
class Config:
"""Configuration for this pydantic object."""