Skip to content

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
1 check 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.

3 participants