Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: Honor the function calling options if configured. #5701

Merged
merged 5 commits into from
Apr 1, 2024

Conversation

moonbox3
Copy link
Contributor

Motivation and Context

In the function calling stepwise planner, some settings like max_tokens (based on max_completion_tokens from the planner settings) and the max auto invoke attempts were not used.

Description

This PR fixes the issue where the prompt execution settings for chat completion wasn't using the function calling stepwise planner options, if configured. Closes #5661

Contribution Checklist

@moonbox3 moonbox3 requested a review from a team as a code owner March 29, 2024 18:36
@markwallace-microsoft markwallace-microsoft added the python Pull requests for the Python Semantic Kernel label Mar 29, 2024
@markwallace-microsoft
Copy link
Member

markwallace-microsoft commented Mar 29, 2024

Py3.8 Test Coverage

Python 3.8 Test Coverage Report •
FileStmtsMissCoverMissing
semantic_kernel/planners/function_calling_stepwise_planner
   function_calling_stepwise_planner.py983960%116–178, 209–214
TOTAL5545102082% 

Python 3.8 Unit Test Overview

Tests Skipped Failures Errors Time
1206 11 💤 0 ❌ 0 🔥 23.449s ⏱️

@moonbox3 moonbox3 added this pull request to the merge queue Apr 1, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 1, 2024
@moonbox3 moonbox3 added this pull request to the merge queue Apr 1, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 1, 2024
@moonbox3 moonbox3 enabled auto-merge April 1, 2024 15:49
@moonbox3 moonbox3 added this pull request to the merge queue Apr 1, 2024
Merged via the queue into microsoft:main with commit e563920 Apr 1, 2024
30 checks passed
@moonbox3 moonbox3 deleted the fix_planner_exec_settings branch April 1, 2024 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests for the Python Semantic Kernel
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Python: Function Calling Stepwise Planner - Max Tokens Ignored after First Call
4 participants