wechat-bot
Version:
46 lines (44 loc) • 1.31 kB
JavaScript
import { getGptReply } from '../openai/index.js'
import { getDoubaoReply } from '../doubao/index.js'
import { getDeepseekReply } from '../deepseek/index.js'
import { getKimiReply } from '../kimi/index.js'
import { getXunfeiReply } from '../xunfei/index.js'
import { getDeepSeekFreeReply } from '../deepseek-free/index.js'
import { get302AiReply } from '../302ai/index.js'
import { getDifyReply } from '../dify/index.js'
import { getOllamaReply } from '../ollama/index.js'
import { getTongyiReply } from '../tongyi/index.js'
import { getClaudeReply } from '../claude/index.js'
/**
* 获取ai服务
* @param serviceType 服务类型 'GPT' | 'Kimi'
* @returns {Promise<void>}
*/
export function getServe(serviceType) {
switch (serviceType) {
case 'ChatGPT':
return getGptReply
case 'doubao':
return getDoubaoReply
case 'deepseek':
return getDeepseekReply
case 'Kimi':
return getKimiReply
case 'Xunfei':
return getXunfeiReply
case 'deepseek-free':
return getDeepSeekFreeReply
case '302AI':
return get302AiReply
case 'dify':
return getDifyReply
case 'ollama':
return getOllamaReply
case 'tongyi':
return getTongyiReply
case 'claude':
return getClaudeReply
default:
return getGptReply
}
}