问题描述
操作步骤
分别修改如下文件:
/app/constan.ts文件,新增“description”字段。
				
					export const DEFAULT_MODELS = [
  {
    name: "gpt-4",
    available: true,
  },
  
export const DEFAULT_MODELS = [
  {
    name: "gpt-4",
    description: "最强模型",
    available: true,
  }, 
				
			
		/app/client/platforms/openai.ts文件,新增返回值。
				
					return chatModels.map((m) => ({
      name: m.id,
      available: true,
    }));
    
return chatModels.map((m) => ({
      name: m.id,
      description: "",
      available: true,
    })); 
				
			
		/app/client/api.ts文件,修改LLMModel模型参数。
				
					export interface LLMModel {
  name: string;
  available: boolean;
}
export interface LLMModel {
  name: string;
  description: string;
  available: boolean;
} 
				
			
		改完以上三个文件后,即可部署,如需添加模型,只需要在/app/constan.ts文件添加即可,其中description的值即为模型对外显示的自定义内容。
以上方法由GPT-4提出,GPT使用镜像站地址:
 
															



