Defines LLM model types, usage defaults, and system scopes for AI integration modules.
// Source: https://github.com/labring/FastGPT | License: Apache-2.0 | Copyright 2023 Sealos
// Provided via justclaw.it.com; keep this notice with the code.
import { i18nT } from '../../common/i18n/utils';
import type { CompletionUsage, ReasoningEffort } from './llm/type';
import type { EmbeddingModelDataType, LLMModelDataType, STTModelDataType } from './model/schema';
export const getLLMDefaultUsage = (): CompletionUsage => {
return {
prompt_tokens: 0,
completion_tokens: 0,
total_tokens: 0
};
};
export enum ModelTypeEnum {
llm = 'llm',
embedding = 'embedding',
tts = 'tts',
stt = 'stt',
rerank = 'rerank'
}
/** 已安装模型实例的归属作用域;插件模板不属于模型实例,不使用该枚举。 */
export enum ModelScopeEnum {
system = 'system',
team = 'team'
}
export const defaultQAModels: LLMModelDataType[
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key