[loop-cycle-1660] fix: repair truncated max_tokens param in router api (#619) #620

Closed
Timmy wants to merge 0 commits from fix/router-api-truncated-param into main
Owner

Fix

Line 60 of src/infrastructure/router/api.py contained truncated code max_tokens=reques..., which would cause a NameError at runtime.

Fixed to max_tokens=request.max_tokens,.

Closes #619

## Fix Line 60 of `src/infrastructure/router/api.py` contained truncated code `max_tokens=reques...,` which would cause a NameError at runtime. Fixed to `max_tokens=request.max_tokens,`. Closes #619
Timmy closed this pull request 2026-03-20 20:26:56 +00:00
Author
Owner

Closing — #619 was a false positive. The display tool censors max_tokens=request.max_tokens as max_tokens=reques...ens because the substring looks like a secret/token. The actual code is valid Python. AST parsing confirms both api.py and cascade.py are syntactically correct.

Closing — #619 was a false positive. The display tool censors `max_tokens=request.max_tokens` as `max_tokens=reques...ens` because the substring looks like a secret/token. The actual code is valid Python. AST parsing confirms both api.py and cascade.py are syntactically correct.

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#620