[GH-ISSUE #69] how to set a bigger max_tokens #26

Closed
opened 2026-10-26 21:11:17 +00:00 by bsakaguchi · 5 comments
Owner

Originally created by @liaoweiguo on GitHub (Dec 30, 2024).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-V3/issues/69

openai.BadRequestError: Error code: 400 - {'error': {'message': 'Invalid max_tokens value, the valid range of max_tokens is [1, 8192]', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_request_error'}}

Originally created by @liaoweiguo on GitHub (Dec 30, 2024). Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-V3/issues/69 openai.BadRequestError: Error code: 400 - {'error': {'message': 'Invalid max_tokens value, the valid range of max_tokens is [1, 8192]', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_request_error'}}
bsakaguchi 2026-10-26 21:11:17 +00:00
Author
Owner

@liaoweiguo commented on GitHub (Dec 30, 2024):

8K limit is ridiculous

<!-- gh-comment-id:2565231921 --> @liaoweiguo commented on GitHub (Dec 30, 2024): 8K limit is ridiculous
Author
Owner

@Sakho96 commented on GitHub (Dec 31, 2024):

oui je confirme

<!-- gh-comment-id:2566188430 --> @Sakho96 commented on GitHub (Dec 31, 2024): oui je confirme
Author
Owner

@github-actions[bot] commented on GitHub (Feb 9, 2025):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this issue is still relevant, please leave a comment to keep it open. Thank you for your contributions!

<!-- gh-comment-id:2645994602 --> @github-actions[bot] commented on GitHub (Feb 9, 2025): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this issue is still relevant, please leave a comment to keep it open. Thank you for your contributions!
Author
Owner

@github-actions[bot] commented on GitHub (Feb 25, 2025):

false

<!-- gh-comment-id:2680004900 --> @github-actions[bot] commented on GitHub (Feb 25, 2025): false
Author
Owner

@ShanJiang-2020 commented on GitHub (Sep 8, 2025):

having the same question

<!-- gh-comment-id:3264945274 --> @ShanJiang-2020 commented on GitHub (Sep 8, 2025): having the same question
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepSeek-V3#26
No description provided.