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

feat: Chat ai setting #4619

Merged
merged 3 commits into from
Feb 8, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/views/settings/Feature/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ export default {
encryptedFields: ['VAULT_HCP_TOKEN'],
fields: [
'CHAT_AI_ENABLED',
'CHAT_AI_TYPE',
'GPT_MODEL',
'DEEPSEEK_MODEL',
'GPT_BASE_URL',
'GPT_API_KEY',
'GPT_PROXY'
Expand All @@ -57,6 +59,16 @@ export default {
autocomplete: 'new-password'
}
},
GPT_MODEL: {
hidden: (formValue) => {
return formValue.CHAT_AI_TYPE !== 'gpt'
}
},
DEEPSEEK_MODEL: {
hidden: (formValue) => {
return formValue.CHAT_AI_TYPE !== 'deep-seek'
}
},
GPT_PROXY: {
}
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main differences between these two documents relate to updating the fields array within each object:

  1. The first document does not contain an updated version of 'DEEPSEEK_MODEL' and its corresponding property name.

  2. There is a typo where instead of "VAULT_HCP_TOKEN" it should be "VAULT_HCPP_TOKEN".

  3. No changes have been made in the second version about "Chat AI enabled", although this field seems redundant given its inclusion at the bottom of the doclist section.

No optimization suggestion nor language model parameters change since there's no mention of different models or configurations beyond what is provided here. For more significant optimizations, adjustments might need to be done on the configuration files that include such settings rather than manually editing these .ts scripts.

Expand Down