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

Refactor DEFAULT_MODELS for better maintainability #4520

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

Algorithm5838
Copy link
Contributor

This PR refactors the DEFAULT_MODELS array to improve code maintainability and readability. Instead of hard-coding each model object, it now uses a more concise approach by iterating over arrays of model names for each provider (OpenAI, Google, and Anthropic). This approach makes it easier to add, remove, or modify models in the future.

Copy link

vercel bot commented Apr 15, 2024

@Algorithm5838 is attempting to deploy a commit to the NextChat Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

Your build has completed!

Preview deployment

@Dean-YZG Dean-YZG merged commit ad80153 into ChatGPTNextWeb:main Apr 16, 2024
1 of 2 checks passed
@H0llyW00dzZ
Copy link
Contributor

nice

@Algorithm5838 Algorithm5838 deleted the refactor-models branch April 16, 2024 01:53
gaogao1030 pushed a commit to gaogao1030/ChatGPT-Next-Web that referenced this pull request May 16, 2024
…dels

Refactor DEFAULT_MODELS for better maintainability
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.

None yet

3 participants