You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To fix this issue you can follow the steps below:
-> Go to (librarry) teams.ai.planners.action_planner.py
-> Go to LLMClientOptions
-> Add following code (line 141): max_history_messages=self._options.prompts._options.max_history_messages,
Then max_history_messages parameter starts to work.
The text was updated successfully, but these errors were encountered:
As you said, this issue include the solution also. I wrote it to help people who has same issue.
I am new on GitHub, PR means create a push request, right? I want to push this changes to production but I don't know how to do it. If you can guide me, I can do it.
Sure. Here are the high level guidelines for contributing to the Python SDK.
Create a fork of the teams-ai repo.
Clone the fork on your local computer.
Run a sample with the local bits. Replace teams-ai: 1.x.x with teams-ai: { path = "../../packages/ai", develop = true } in the pyproject.toml of the sample. See here for instructions for setting up a sample.
Implement the solution in the teams.ai.planners.action_planner.py file and re-run the sample.
Hello,
PromptManagerOptions has max_history_messages parameter but it doesn't working in Python.
prompts = PromptManager(PromptManagerOptions( prompts_folder=f"{os.getcwd()}/prompts", max_history_messages=4))
To fix this issue you can follow the steps below:
-> Go to (librarry) teams.ai.planners.action_planner.py
-> Go to LLMClientOptions
-> Add following code (line 141): max_history_messages=self._options.prompts._options.max_history_messages,
Then max_history_messages parameter starts to work.
The text was updated successfully, but these errors were encountered: