Skip to content

fix(samples): raise default LLM max tokens to 4000 - #85

Merged
guofei66 merged 1 commit into
project-openan:mainfrom
Zhoujie628:main
Sep 18, 2026
Merged

guofei66 merged 1 commit into
project-openan:mainfrom
Zhoujie628:main

Conversation

@Zhoujie628

Copy link
Copy Markdown
Contributor

Field logs show the reasoning-capable model exhausting 2000 output tokens: validation responses came back with finish_reason=length or truncated JSON (Unexpected end-of-input), forcing caller-side retries and adding tens of seconds per affected call.

Raise the LlmHelper fallback default to 4000, matching the documented .env.example value. Deployments that set A2AT_LLM_MAX_TOKENS explicitly are unaffected.

Held open for review - do not merge yet.

Field logs show the reasoning-capable model exhausting 2000 output
tokens: validation responses came back with finish_reason=length or
truncated JSON, forcing the caller-side retries and adding tens of
seconds per affected call. Raise the LlmHelper fallback default to
4000 to match the documented .env.example value; deployments that set
A2AT_LLM_MAX_TOKENS explicitly are unaffected.

Signed-off-by: Zhoujie628 <zhoujie628@users.noreply.github.com>
@Zhoujie628
Zhoujie628 requested a review from a team as a code owner September 17, 2026 11:40
@guofei66
guofei66 merged commit 4611d70 into project-openan:main Sep 18, 2026
3 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.

2 participants