MCPcopy Create free account
hub / github.com/Rfym21/Qwen2API / extractTextFromContent

Function extractTextFromContent

src/utils/chat-helpers.js:258–268  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

256 * @param {boolean} search - 是否搜索模式
257 * @returns {string} 聊天类型 ('search''t2t')
258 */
259const isChatType = (model) => {
260 if (!model) return 't2t'
261 if (model.includes('-search')) {
262 return 'search'
263 } else if (model.includes('-image-edit')) {
264 return 'image_edit'
265 } else if (model.includes('-image')) {
266 return 't2i'
267 } else if (model.includes('-video')) {
268 return 't2v'
269 } else if (model.includes('-deep-research')) {
270 return 'deep_research'
271 } else {

Callers 1

formatSingleMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected