Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Apply workaround to set max_tokens#4181

Merged
LiliDeng merged 1 commit into
microsoft:mainfrom
s4heid:max-tokens
Jan 4, 2026
Merged

Apply workaround to set max_tokens#4181
LiliDeng merged 1 commit into
microsoft:mainfrom
s4heid:max-tokens

Conversation

@s4heid

@s4heid s4heid commented Dec 30, 2025

Copy link
Copy Markdown
Contributor

Fixes #4179

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR applies a workaround to fix the LISA AI Log Analyzer failure caused by a bug in the agent-framework library (version 1.0.0b251223). The bug incorrectly translates the max_tokens parameter to max_output_tokens, which is not supported by Azure OpenAI's API. The workaround uses additional_properties={"max_completion_tokens": ...} instead of the direct max_tokens parameter until the upstream fix is released.

Key Changes:

  • Applied workaround to bypass agent-framework bug by using additional_properties with max_completion_tokens instead of the max_tokens parameter
  • Updated both ChatAgent instantiation locations to ensure consistent behavior across all AI agents

Comment thread lisa/ai/default_flow.py
Comment thread lisa/ai/default_flow.py
@LiliDeng LiliDeng merged commit 79ae861 into microsoft:main Jan 4, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LISA AI Log Analyzer Failure max_output_tokens

4 participants