feat(agent-mui): add agent canvas, nodes, and related components
docs(agent-hooks-guide): add comprehensive guide for agent hooks usage and implementation
This commit is contained in:
@@ -9,7 +9,7 @@ import type {
|
||||
} from '../components/ModelDialogs';
|
||||
import type { ITenantInfo } from '@/interfaces/database/knowledge';
|
||||
import { useLlmList } from '@/hooks/llm-hooks';
|
||||
import type { LlmModelType } from '@/constants/knowledge';
|
||||
import { LlmModelType } from '@/constants/knowledge';
|
||||
import { useUserData } from '@/hooks/useUserData';
|
||||
import type { ISetApiKeyRequestBody, IAddLlmRequestBody } from '@/interfaces/request/llm';
|
||||
import type { ConfigFormItem, ConfigurationFormData, DocLinkConfig } from '../components/Dialog/ConfigurationDialog';
|
||||
@@ -291,12 +291,12 @@ export const useSystemModelSetting = (onSuccess?: () => void) => {
|
||||
}, [llmList]);
|
||||
|
||||
const allModelOptions = useMemo(() => {
|
||||
const llmOptions = getOptionsByModelType('chat');
|
||||
const image2textOptions = getOptionsByModelType('image2text');
|
||||
const embeddingOptions = getOptionsByModelType('embedding');
|
||||
const speech2textOptions = getOptionsByModelType('speech2text');
|
||||
const rerankOptions = getOptionsByModelType('rerank');
|
||||
const ttsOptions = getOptionsByModelType('tts');
|
||||
const llmOptions = getOptionsByModelType(LlmModelType.Chat);
|
||||
const image2textOptions = getOptionsByModelType(LlmModelType.Image2text);
|
||||
const embeddingOptions = getOptionsByModelType(LlmModelType.Embedding);
|
||||
const speech2textOptions = getOptionsByModelType(LlmModelType.Speech2text);
|
||||
const rerankOptions = getOptionsByModelType(LlmModelType.Rerank);
|
||||
const ttsOptions = getOptionsByModelType(LlmModelType.TTS);
|
||||
|
||||
return {
|
||||
llmOptions,
|
||||
|
||||
Reference in New Issue
Block a user