mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-18 16:16:33 +00:00
Some more PowerBI pydantic and import fixes (#3461)
This commit is contained in:
committed by
GitHub
parent
ab749fa1bb
commit
a3e3f26090
@@ -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."
|
||||
|
@@ -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."""
|
||||
|
Reference in New Issue
Block a user