mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
60a7098fd3
- Add BaiduSearchConfig struct and register in WebToolsConfig/defaults - Insert Baidu Search in priority chain: DuckDuckGo > Baidu > GLM Search - Use perplexityTimeout (30s) — Qianfan is LLM-based - Fix response parsing: use references[] field per API spec - Add baidu_search block to config.example.json docs: sync configuration.md and README Documentation table across all languages - Complete truncated configuration.md for fr/ja/pt-br/vi/zh: add Spawn async flow diagram, Providers table, Model Configuration (all vendors, examples, load balancing, migration), Provider Architecture, Scheduled Tasks, and Advanced Topics links - Add Hooks/Steering/SubTurn entries to Documentation table in all 8 READMEs (en/zh/fr/id/it/ja/pt-br/vi), ordered before Troubleshooting - Add Baidu Search row to web search table in all 8 READMEs and tools_configuration.md (en + 5 i18n); zh README reorders search engines with China-friendly options first - Add Matrix channel docs translations (fr/ja/pt-br/vi) - Add Weixin channel to chat-apps.md and all README Channels tables Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
65 lines
2.7 KiB
Markdown
65 lines
2.7 KiB
Markdown
> Retour au [README](../../../README.fr.md)
|
|
|
|
# Guide de configuration du canal Matrix
|
|
|
|
## 1. Exemple de configuration
|
|
|
|
Ajoutez ceci à `config.json` :
|
|
|
|
```json
|
|
{
|
|
"channels": {
|
|
"matrix": {
|
|
"enabled": true,
|
|
"homeserver": "https://matrix.org",
|
|
"user_id": "@your-bot:matrix.org",
|
|
"access_token": "YOUR_MATRIX_ACCESS_TOKEN",
|
|
"device_id": "",
|
|
"join_on_invite": true,
|
|
"allow_from": [],
|
|
"group_trigger": {
|
|
"mention_only": true
|
|
},
|
|
"placeholder": {
|
|
"enabled": true,
|
|
"text": "Thinking..."
|
|
},
|
|
"reasoning_channel_id": "",
|
|
"message_format": "richtext"
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
## 2. Référence des champs
|
|
|
|
| Champ | Type | Requis | Description |
|
|
|----------------------|----------|--------|-------------|
|
|
| enabled | bool | Oui | Activer ou désactiver le canal Matrix |
|
|
| homeserver | string | Oui | URL du homeserver Matrix (par exemple `https://matrix.org`) |
|
|
| user_id | string | Oui | ID utilisateur Matrix du bot (par exemple `@bot:matrix.org`) |
|
|
| access_token | string | Oui | Jeton d'accès du bot |
|
|
| device_id | string | Non | ID d'appareil Matrix optionnel |
|
|
| join_on_invite | bool | Non | Rejoindre automatiquement les salons invités |
|
|
| allow_from | []string | Non | Liste blanche d'utilisateurs (IDs Matrix) |
|
|
| group_trigger | object | Non | Stratégie de déclenchement de groupe (`mention_only` / `prefixes`) |
|
|
| placeholder | object | Non | Configuration du message de remplacement |
|
|
| reasoning_channel_id | string | Non | Canal cible pour la sortie de raisonnement |
|
|
| message_format | string | Non | Format de sortie : `"richtext"` (défaut) rend le markdown en HTML ; `"plain"` envoie du texte brut uniquement |
|
|
|
|
## 3. Fonctionnalités actuellement supportées
|
|
|
|
- Envoi/réception de messages texte avec rendu markdown (gras, italique, titres, blocs de code, etc.)
|
|
- Format de message configurable (`richtext` / `plain`)
|
|
- Téléchargement d'images/audio/vidéo/fichiers entrants (MediaStore en priorité, chemin local en secours)
|
|
- Normalisation de l'audio entrant dans le flux de transcription existant (`[audio: ...]`)
|
|
- Upload et envoi d'images/audio/vidéo/fichiers sortants
|
|
- Règles de déclenchement de groupe (y compris le mode mention uniquement)
|
|
- État de frappe (`m.typing`)
|
|
- Message de remplacement + remplacement de la réponse finale
|
|
- Rejoindre automatiquement les salons invités (peut être désactivé)
|
|
|
|
## 4. TODO
|
|
|
|
- Améliorations des métadonnées des médias riches (par exemple taille et miniatures des images/vidéos)
|