+
+
+
+ {t('account:model.model_id')}
+
+
+ |
+
+ {isCustom ? (
+
+ ) : (
+ modelData?.model
+ )}
+ |
+
+
+ {t('common:model.provider')} |
+
+ setValue('provider', value)}
+ list={providerList.current}
+ {...InputStyles}
+ />
+ |
+
+
+
+
+ {t('account:model.alias')}
+
+
+ |
+
+
+ |
+
+ {priceUnit && feConfigs?.isPlus && (
+ <>
+
+
+
+ {t('account:model.charsPointsPrice')}
+
+
+ |
+
+
+
+
+ {priceUnit}
+
+
+ |
+
+ {isLLMModel && (
+ <>
+
+
+
+ {t('account:model.input_price')}
+
+
+ |
+
+
+
+
+ {priceUnit}
+
+
+ |
+
+
+
+
+ {t('account:model.output_price')}
+
+
+ |
+
+
+
+
+ {priceUnit}
+
+
+ |
+
+ >
+ )}
+ >
+ )}
+ {isLLMModel && (
+ <>
+
+ {t('common:core.ai.Max context')} |
+
+
+
+
+ |
+
+
+ {t('account:model.max_quote')} |
+
+
+
+
+ |
+
+
+ {t('common:core.chat.response.module maxToken')} |
+
+
+
+
+ |
+
+
+ {t('account:model.max_temperature')} |
+
+
+
+
+ |
+
+
+
+
+ {t('account:model.show_top_p')}
+
+ |
+
+
+
+
+ |
+
+
+
+
+ {t('account:model.show_stop_sign')}
+
+ |
+
+
+
+
+ |
+
+
+ {t('account:model.response_format')} |
+
+ {
+ if (!e) {
+ setValue('responseFormatList', []);
+ return;
+ }
+ try {
+ setValue('responseFormatList', JSON.parse(e));
+ } catch (error) {
+ console.error(error);
+ }
+ }}
+ {...InputStyles}
+ />
+ |
+
+ >
+ )}
+ {isEmbeddingModel && (
+ <>
+
+
+
+ {t('account:model.normalization')}
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ {t('account:model.default_token')}
+
+
+ |
+
+
+
+
+ |
+
+
+ {t('common:core.ai.Max context')} |
+
+
+
+
+ |
+
+
+
+
+ {t('account:model.defaultConfig')}
+
+
+ |
+
+
+ {
+ if (!e) {
+ setValue('defaultConfig', {});
+ return;
+ }
+ try {
+ setValue('defaultConfig', JSON.parse(e));
+ } catch (error) {
+ console.error(error);
+ }
+ }}
+ {...InputStyles}
+ />
+
+ |
+
+ >
+ )}
+ {isTTSModel && (
+ <>
+
+
+
+ {t('account:model.voices')}
+
+
+ |
+
+
+ {
+ try {
+ setValue('voices', JSON.parse(e));
+ } catch (error) {
+ console.error(error);
+ }
+ }}
+ {...InputStyles}
+ />
+
+ |
+
+ >
+ )}
+
+
+
+ {t('account:model.request_url')}
+
+
+ |
+
+
+ |
+
+
+
+
+ {t('account:model.request_auth')}
+
+
+ |
+
+
+ |
+
+
+