Skip to content

Commit

Permalink
fix: refactor types
Browse files Browse the repository at this point in the history
  • Loading branch information
ArslanSaleem committed Sep 22, 2023
1 parent f715035 commit 2da890a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
salaries_df = pd.DataFrame(salaries_data)


llm = OpenAI("sk-lyDyNVyBwnykr1lJ4Yc7T3BlbkFJtJNyJlKTAvUa2E2D5Wdb44")
llm = OpenAI("OPEN_API_KEY")
agent = Agent([employees_df, salaries_df], config={"llm": llm}, memory_size=10)

# Chat with the agent
Expand Down
4 changes: 2 additions & 2 deletions pandasai/agent/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ class Agent:

_memory: Memory
_lake: SmartDatalake = None
logger: Logger = None
logger: Optional[Logger] = None

def __init__(
self,
dfs: Union[DataFrameType, List[DataFrameType]],
config: Optional[Union[Config, dict]] = None,
logger: Logger = None,
logger: Optional[Logger] = None,
memory_size: int = 1,
):
"""
Expand Down

0 comments on commit 2da890a

Please sign in to comment.