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

Add max_tokens configuration for LLM API #421

Merged
merged 1 commit into from
Nov 12, 2024
Merged

Conversation

yangbobo2021
Copy link
Contributor

This pull request introduces a new feature for the LLM API by adding a configurable max_tokens setting. Changes include:

  • Implemented loading of chat configuration from a YAML file.
  • Introduced get_maxtokens_by_model function to retrieve max_tokens based on model selection.
  • Updated chat completion functions to utilize the dynamic max_tokens setting.

This enhancement aims to provide more flexibility in managing the token limits for different models, improving the overall functionality of the API.

Closes /#issue_id

- Implemented loading of chat configuration from a YAML file.
- Introduced `get_maxtokens_by_model` function to retrieve max_tokens.
- Updated chat completion functions to utilize dynamic max_tokens setting.
@kagami-l kagami-l merged commit 1fb5b9a into main Nov 12, 2024
2 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