mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 15:31:05 +08:00
Go: implement ASR and TTS for xiaomi (#15765)
### What problem does this PR solve? **Verified from CLI** ``` RAGFlow(user)> chat with 'mimo-v2.5@test@xiaomi' message 'who r u' Answer: Hello! I'm MiMo-v2.5, a large language model developed by Xiaomi's LLM Core Team. You can think of me as a friendly AI assistant ready to help you answer questions, have conversations, or work on creative tasks. My context window can handle up to 1 million tokens, so we can dive into pretty long discussions or documents if you'd like. What can I help you with today? Time: 3.831830 RAGFlow(user)> stream chat with 'mimo-v2.5@test@xiaomi' message 'who r u' Answer: there! I'm MiMo-v2.5, an AI assistant created by the Xiaomi LLM Core Team. I'm here to chat, help out, answer questions, or just have a friendly conversation. Think of me as a helpful buddy with a pretty big memory (1 million tokens worth!). What can I do for you today?😊 Time: 2.421630 RAGFlow(user)> think chat with 'mimo-v2.5@test@xiaomi' message 'who r u' Thinking: The user is asking a simple question about who I am. According to my system prompt, I should: - Identify myself as **MiMo-v2.5** - State that I was developed by the **Xiaomi LLM Core Team** - Answer in first person and be warm and conversational Answer: Hey there! 👋 I'm **MiMo**, an AI assistant created by the **Xiaomi LLM Core Team**. Think of me as a friendly chat buddy who's here to help you with all sorts of questions and tasks! I love having conversations, answering questions, brainstorming ideas, and helping people figure things out. Whether you want to chat, need help with something specific, or just want to explore ideas together — I'm here for it! 😊 What can I help you with today? Time: 6.651589 RAGFlow(user)> tts with 'mimo-v2.5-tts@test@xiaomi' text 'hello? show yourself' play format 'wav' param '{"voice": "Chloe"}' SUCCESS RAGFlow(user)> asr with 'mimo-v2.5-asr@test@xiaomi' audio './internal/test.wav' param '{"language": "zh"}' +------------------------------------------------------------------------------------------------------------------------+ | text | +------------------------------------------------------------------------------------------------------------------------+ | 1 The examination and testimony of the experts enabled the commission to conclude that five shots may have been fired. | +------------------------------------------------------------------------------------------------------------------------+ ``` ### Type of change - [x] New Feature (non-breaking change which adds functionality) - [x] Refactoring
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
{
|
||||
"name": "Xiaomi",
|
||||
"url": {
|
||||
"default": "https://api.xiaomimimo.com"
|
||||
"default": "https://api.xiaomimimo.com/v1"
|
||||
},
|
||||
"url_suffix": {
|
||||
"chat": "v1/chat/completions"
|
||||
"chat": "chat/completions"
|
||||
},
|
||||
"class": "xiaomi",
|
||||
"models": [
|
||||
{
|
||||
"name": "mimo-v2.5-pro",
|
||||
@@ -19,15 +18,26 @@
|
||||
"name": "mimo-v2.5",
|
||||
"max_tokens": 1048576,
|
||||
"model_types": [
|
||||
"chat",
|
||||
"vision"
|
||||
"chat"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "mimo-v2-flash",
|
||||
"max_tokens": 262144,
|
||||
"name": "mimo-v2.5-asr",
|
||||
"max_tokens": 8192,
|
||||
"model_types": [
|
||||
"chat"
|
||||
"asr"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "mimo-v2.5-tts",
|
||||
"model_types": [
|
||||
"tts"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "mimo-v2-tts",
|
||||
"model_types": [
|
||||
"tts"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user