feat: [frontend] support vision (#1518)

Co-authored-by: Joel <iamjoel007@gmail.com>
This commit is contained in:
zxhlyh 2023-11-13 22:32:39 +08:00 • committed by GitHub
commit 6b15827246
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
74 changed files with 3159 additions and 339 deletions

View file

@ -61,7 +61,6 @@ const Item: FC<ItemProps> = ({
onCancel={() => setShowDeleteConfirm(false)}
title={`${t('common.operation.delete')} “${data.name}”?`}
onConfirm={handleDeleteApiBasedExtension}
desc={t('common.apiBasedExtension.confirm.desc') || ''}
confirmWrapperClassName='!z-30'
confirmText={t('common.operation.delete') || ''}
confirmBtnClassName='!bg-[#D92D20]'

View file

@ -71,6 +71,7 @@ export enum ModelType {
export enum ModelFeature {
agentThought = 'agent_thought',
vision = 'vision',
}
// backend defined model struct: /console/api/workspaces/current/models/model-type/:model_type