2026-02-18 17:03:34 +00:00
|
|
|
// PicoClaw - Ultra-lightweight personal AI agent
|
|
|
|
|
// License: MIT
|
|
|
|
|
//
|
|
|
|
|
// Copyright (c) 2026 PicoClaw contributors
|
|
|
|
|
|
|
|
|
|
package config
|
|
|
|
|
|
2026-03-01 20:41:12 +00:00
|
|
|
import (
|
|
|
|
|
"os"
|
|
|
|
|
"path/filepath"
|
2026-03-11 08:33:01 +00:00
|
|
|
|
|
|
|
|
"github.com/sipeed/picoclaw/pkg"
|
2026-03-01 20:41:12 +00:00
|
|
|
)
|
|
|
|
|
|
2026-02-18 17:03:34 +00:00
|
|
|
// DefaultConfig returns the default configuration for PicoClaw.
|
|
|
|
|
func DefaultConfig() *Config {
|
2026-03-01 20:41:12 +00:00
|
|
|
// Determine the base path for the workspace.
|
|
|
|
|
// Priority: $PICOCLAW_HOME > ~/.picoclaw
|
|
|
|
|
var homePath string
|
2026-03-18 10:03:24 +00:00
|
|
|
if picoclawHome := os.Getenv(EnvHome); picoclawHome != "" {
|
2026-03-01 20:41:12 +00:00
|
|
|
homePath = picoclawHome
|
|
|
|
|
} else {
|
|
|
|
|
userHome, _ := os.UserHomeDir()
|
2026-03-11 08:33:01 +00:00
|
|
|
homePath = filepath.Join(userHome, pkg.DefaultPicoClawHome)
|
2026-03-01 20:41:12 +00:00
|
|
|
}
|
2026-03-11 08:33:01 +00:00
|
|
|
workspacePath := filepath.Join(homePath, pkg.WorkspaceName)
|
2026-03-01 20:41:12 +00:00
|
|
|
|
2026-02-18 17:03:34 +00:00
|
|
|
return &Config{
|
2026-03-11 08:33:01 +00:00
|
|
|
Version: CurrentVersion,
|
2026-02-18 17:03:34 +00:00
|
|
|
Agents: AgentsConfig{
|
|
|
|
|
Defaults: AgentDefaults{
|
2026-03-04 03:23:01 +00:00
|
|
|
Workspace: workspacePath,
|
|
|
|
|
RestrictToWorkspace: true,
|
|
|
|
|
Provider: "",
|
|
|
|
|
MaxTokens: 32768,
|
|
|
|
|
Temperature: nil, // nil means use provider default
|
|
|
|
|
MaxToolIterations: 50,
|
|
|
|
|
SummarizeMessageThreshold: 20,
|
|
|
|
|
SummarizeTokenPercent: 75,
|
2026-03-15 16:08:16 +00:00
|
|
|
SteeringMode: "one-at-a-time",
|
2026-03-19 10:08:50 +00:00
|
|
|
ToolFeedback: ToolFeedbackConfig{
|
2026-03-26 01:31:42 +00:00
|
|
|
Enabled: false,
|
2026-03-19 10:08:50 +00:00
|
|
|
MaxArgsLength: 300,
|
|
|
|
|
},
|
2026-03-25 17:33:49 +00:00
|
|
|
SplitOnMarker: false,
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
|
|
|
|
},
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
Bindings: []AgentBinding{},
|
2026-02-20 05:29:30 +00:00
|
|
|
Session: SessionConfig{
|
2026-02-26 08:51:11 +00:00
|
|
|
DMScope: "per-channel-peer",
|
2026-02-20 05:29:30 +00:00
|
|
|
},
|
2026-02-18 17:03:34 +00:00
|
|
|
Channels: ChannelsConfig{
|
|
|
|
|
WhatsApp: WhatsAppConfig{
|
2026-02-22 20:29:27 +00:00
|
|
|
Enabled: false,
|
|
|
|
|
BridgeURL: "ws://localhost:3001",
|
|
|
|
|
UseNative: false,
|
|
|
|
|
SessionStorePath: "",
|
|
|
|
|
AllowFrom: FlexibleStringSlice{},
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
|
|
|
|
Telegram: TelegramConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
AllowFrom: FlexibleStringSlice{},
|
2026-02-22 20:55:15 +00:00
|
|
|
Typing: TypingConfig{Enabled: true},
|
|
|
|
|
Placeholder: PlaceholderConfig{
|
|
|
|
|
Enabled: true,
|
2026-03-25 09:41:50 +00:00
|
|
|
Text: FlexibleStringSlice{"Thinking... 💭"},
|
2026-02-22 20:55:15 +00:00
|
|
|
},
|
feat(telegram): stream LLM responses via sendMessageDraft (#1101)
* feat(telegram): stream LLM responses in real-time via sendMessageDraft
Implements real-time token streaming to Telegram using the sendMessageDraft
API (telego v1.6.0). Instead of showing only a "Thinking..." placeholder
until the full response arrives, users now see partial LLM output appear
in the chat as it's generated.
The streaming pipeline threads through all layers:
- StreamingProvider interface (providers/types.go): opt-in ChatStream()
method that receives an onChunk callback with accumulated text
- OpenAI-compatible SSE streaming (openai_compat/provider.go): parses
SSE events with stream:true, handles text deltas and tool call assembly
- Anthropic native streaming (anthropic/provider.go): uses SDK's
NewStreaming() for direct Anthropic API connections
- HTTPProvider delegation (http_provider.go): delegates ChatStream to
the underlying openai_compat provider
- StreamingCapable + Streamer interfaces (channels/interfaces.go):
opt-in channel capability like TypingCapable/PlaceholderCapable
- Telegram streamer (telegram/telegram.go): BeginStream returns a
telegramStreamer that throttles sendMessageDraft calls (3s/200 chars)
with graceful degradation on API errors
- StreamDelegate bridge (bus/bus.go): decouples agent loop from channel
manager without tight imports
- Manager integration (manager.go): implements StreamDelegate, tracks
streamActive state, coordinates with placeholder editing
- Agent loop (loop.go): uses ChatStream when both provider and channel
support streaming, cancels stream on tool calls, skips PublishOutbound
when Finalize already delivered the message
Graceful degradation:
- Bots without forum/topics mode: first sendMessageDraft error sets
failed=true, subsequent Updates become no-ops, Finalize still delivers
via SendMessage. User sees normal non-streaming behavior.
- Non-streaming providers: type assertion fails, falls back to Chat()
- Config opt-out: streaming.enabled (default true) in telegram config
Closes #1098
* fix(telegram): delete placeholder message when streaming delivers response
When streaming was active, the "Thinking..." placeholder message stayed
in the chat because preSend only deleted the tracking entry without
removing the actual Telegram message. Now preSend deletes the placeholder
via the new MessageDeleter interface when streamActive is set.
* refactor(streaming): remove dead code and simplify streaming wiring
- Delete unused Anthropic ChatStream/parseStream (-131 lines) — factory
creates HTTPProvider for all OpenAI-compat providers including OpenRouter
- Simplify runLLMIteration from 4 to 3 return values (remove unused
streamed bool)
- Replace managerStreamer struct with finalizeHookStreamer using embedding
(Update/Cancel promoted, only Finalize overridden)
* fix(streaming): skip streamer acquisition when SendResponse is false
Heartbeat messages set SendResponse=false but the streaming path
was unconditionally acquiring a streamer, causing HEARTBEAT_OK to
leak to Telegram via streamer.Finalize().
* fix(streaming): guard streamer for non-sendable messages, add streaming config
Skip streamer acquisition for heartbeat (NoHistory=true), preventing
HEARTBEAT_OK from leaking to Telegram via streamer.Finalize().
Add streaming.enabled to Telegram defaults and example config.
* feat(telegram): stream LLM responses in real-time via sendMessageDraft
Implements real-time token streaming to Telegram using the sendMessageDraft
API (telego v1.6.0). Instead of showing only a "Thinking..." placeholder
until the full response arrives, users now see partial LLM output appear
in the chat as it's generated.
The streaming pipeline threads through all layers:
- StreamingProvider interface (providers/types.go): opt-in ChatStream()
method that receives an onChunk callback with accumulated text
- OpenAI-compatible SSE streaming (openai_compat/provider.go): parses
SSE events with stream:true, handles text deltas and tool call assembly
- Anthropic native streaming (anthropic/provider.go): uses SDK's
NewStreaming() for direct Anthropic API connections
- HTTPProvider delegation (http_provider.go): delegates ChatStream to
the underlying openai_compat provider
- StreamingCapable + Streamer interfaces (channels/interfaces.go):
opt-in channel capability like TypingCapable/PlaceholderCapable
- Telegram streamer (telegram/telegram.go): BeginStream returns a
telegramStreamer that throttles sendMessageDraft calls (3s/200 chars)
with graceful degradation on API errors
- StreamDelegate bridge (bus/bus.go): decouples agent loop from channel
manager without tight imports
- Manager integration (manager.go): implements StreamDelegate, tracks
streamActive state, coordinates with placeholder editing
- Agent loop (loop.go): uses ChatStream when both provider and channel
support streaming, cancels stream on tool calls, skips PublishOutbound
when Finalize already delivered the message
Graceful degradation:
- Bots without forum/topics mode: first sendMessageDraft error sets
failed=true, subsequent Updates become no-ops, Finalize still delivers
via SendMessage. User sees normal non-streaming behavior.
- Non-streaming providers: type assertion fails, falls back to Chat()
- Config opt-out: streaming.enabled (default true) in telegram config
Closes #1098
* fix(telegram): delete placeholder message when streaming delivers response
When streaming was active, the "Thinking..." placeholder message stayed
in the chat because preSend only deleted the tracking entry without
removing the actual Telegram message. Now preSend deletes the placeholder
via the new MessageDeleter interface when streamActive is set.
* refactor(streaming): remove dead code and simplify streaming wiring
- Delete unused Anthropic ChatStream/parseStream (-131 lines) — factory
creates HTTPProvider for all OpenAI-compat providers including OpenRouter
- Simplify runLLMIteration from 4 to 3 return values (remove unused
streamed bool)
- Replace managerStreamer struct with finalizeHookStreamer using embedding
(Update/Cancel promoted, only Finalize overridden)
* fix(streaming): skip streamer acquisition when SendResponse is false
Heartbeat messages set SendResponse=false but the streaming path
was unconditionally acquiring a streamer, causing HEARTBEAT_OK to
leak to Telegram via streamer.Finalize().
* fix(streaming): guard streamer for non-sendable messages, add streaming config
Skip streamer acquisition for heartbeat (NoHistory=true), preventing
HEARTBEAT_OK from leaking to Telegram via streamer.Finalize().
Add streaming.enabled to Telegram defaults and example config.
* fix(picoclaw): add missing closing brace for StreamingProvider interface
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: resolve golangci-lint formatting issues
Fix gci import ordering in telegram and anthropic provider, and break
long function signature in openai_compat provider to satisfy golines.
* fix: address code review feedback on streaming PR
- Deduplicate Streamer interface: alias channels.Streamer to bus.Streamer
to prevent type drift across packages
- Increase SSE scanner buffer to 10MB max to handle large single-line
responses that exceed bufio.Scanner's 64KB default
- Switch draftID generation from math/rand to crypto/rand for
collision-resistant random IDs
- Add context cancellation check in SSE parsing loop so cancelled
streams stop processing immediately
- Log Finalize failures with chat_id and content length for debugging
silent message delivery failures
* feat: make streaming throttle interval and min growth configurable
Move hardcoded streamThrottleInterval (3s) and streamMinGrowth (200)
into StreamingConfig so they can be tuned per deployment via config
or environment variables.
* fix(telegram): use parseTelegramChatID in DeleteMessage and BeginStream
These two functions called undefined parseChatID. Use
parseTelegramChatID with _ for the unused threadID instead of adding
a wrapper function. Fixes all three CI checks.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(streaming): set streamActive only after successful Finalize
Move onFinalize hook to run after Streamer.Finalize succeeds, so that
if Finalize fails the streamActive flag stays false and the regular
placeholder fallback path remains available.
Addresses review feedback from @alexhoshina.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 13:04:14 +00:00
|
|
|
Streaming: StreamingConfig{Enabled: true, ThrottleSeconds: 3, MinGrowthChars: 200},
|
2026-03-18 13:29:21 +00:00
|
|
|
UseMarkdownV2: false,
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
|
|
|
|
Feishu: FeishuConfig{
|
2026-03-21 17:55:00 +00:00
|
|
|
Enabled: false,
|
|
|
|
|
AppID: "",
|
|
|
|
|
AllowFrom: FlexibleStringSlice{},
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
|
|
|
|
Discord: DiscordConfig{
|
2026-02-20 11:18:37 +00:00
|
|
|
Enabled: false,
|
|
|
|
|
AllowFrom: FlexibleStringSlice{},
|
|
|
|
|
MentionOnly: false,
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
|
|
|
|
MaixCam: MaixCamConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
Host: "0.0.0.0",
|
|
|
|
|
Port: 18790,
|
|
|
|
|
AllowFrom: FlexibleStringSlice{},
|
|
|
|
|
},
|
|
|
|
|
QQ: QQConfig{
|
2026-03-19 08:27:34 +00:00
|
|
|
Enabled: false,
|
|
|
|
|
AppID: "",
|
|
|
|
|
AllowFrom: FlexibleStringSlice{},
|
|
|
|
|
MaxMessageLength: 2000,
|
|
|
|
|
MaxBase64FileSizeMiB: 0,
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
|
|
|
|
DingTalk: DingTalkConfig{
|
2026-03-21 17:55:00 +00:00
|
|
|
Enabled: false,
|
|
|
|
|
ClientID: "",
|
|
|
|
|
AllowFrom: FlexibleStringSlice{},
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
|
|
|
|
Slack: SlackConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
AllowFrom: FlexibleStringSlice{},
|
|
|
|
|
},
|
2026-03-07 17:44:24 +00:00
|
|
|
Matrix: MatrixConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
Homeserver: "https://matrix.org",
|
|
|
|
|
UserID: "",
|
|
|
|
|
DeviceID: "",
|
|
|
|
|
JoinOnInvite: true,
|
|
|
|
|
AllowFrom: FlexibleStringSlice{},
|
|
|
|
|
GroupTrigger: GroupTriggerConfig{
|
|
|
|
|
MentionOnly: true,
|
|
|
|
|
},
|
|
|
|
|
Placeholder: PlaceholderConfig{
|
|
|
|
|
Enabled: true,
|
2026-03-25 09:41:50 +00:00
|
|
|
Text: FlexibleStringSlice{"Thinking... 💭"},
|
2026-03-07 17:44:24 +00:00
|
|
|
},
|
2026-03-20 16:00:37 +00:00
|
|
|
CryptoDatabasePath: "",
|
|
|
|
|
CryptoPassphrase: "",
|
2026-03-07 17:44:24 +00:00
|
|
|
},
|
2026-02-18 17:03:34 +00:00
|
|
|
LINE: LINEConfig{
|
2026-03-21 17:55:00 +00:00
|
|
|
Enabled: false,
|
|
|
|
|
WebhookHost: "0.0.0.0",
|
|
|
|
|
WebhookPort: 18791,
|
|
|
|
|
WebhookPath: "/webhook/line",
|
|
|
|
|
AllowFrom: FlexibleStringSlice{},
|
|
|
|
|
GroupTrigger: GroupTriggerConfig{MentionOnly: true},
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
|
|
|
|
OneBot: OneBotConfig{
|
2026-03-21 17:55:00 +00:00
|
|
|
Enabled: false,
|
|
|
|
|
WSUrl: "ws://127.0.0.1:3001",
|
|
|
|
|
ReconnectInterval: 5,
|
|
|
|
|
AllowFrom: FlexibleStringSlice{},
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
2026-02-20 07:33:24 +00:00
|
|
|
WeCom: WeComConfig{
|
2026-03-24 07:03:41 +00:00
|
|
|
Enabled: false,
|
|
|
|
|
BotID: "",
|
|
|
|
|
WebSocketURL: "wss://openws.work.weixin.qq.com",
|
|
|
|
|
SendThinkingMessage: true,
|
|
|
|
|
AllowFrom: FlexibleStringSlice{},
|
2026-02-28 05:25:37 +00:00
|
|
|
},
|
2026-03-22 06:23:39 +00:00
|
|
|
Weixin: WeixinConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
BaseURL: "https://ilinkai.weixin.qq.com/",
|
|
|
|
|
CDNBaseURL: "https://novac2c.cdn.weixin.qq.com/c2c",
|
|
|
|
|
AllowFrom: FlexibleStringSlice{},
|
|
|
|
|
Proxy: "",
|
|
|
|
|
},
|
2026-02-22 20:55:15 +00:00
|
|
|
Pico: PicoConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
PingInterval: 30,
|
|
|
|
|
ReadTimeout: 60,
|
|
|
|
|
WriteTimeout: 10,
|
|
|
|
|
MaxConnections: 100,
|
|
|
|
|
AllowFrom: FlexibleStringSlice{},
|
|
|
|
|
},
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
2026-03-22 11:21:58 +00:00
|
|
|
Hooks: HooksConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
Defaults: HookDefaultsConfig{
|
|
|
|
|
ObserverTimeoutMS: 500,
|
|
|
|
|
InterceptorTimeoutMS: 5000,
|
|
|
|
|
ApprovalTimeoutMS: 60000,
|
|
|
|
|
},
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
2026-03-21 17:55:00 +00:00
|
|
|
ModelList: []*ModelConfig{
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
// ============================================
|
|
|
|
|
// Add your API key to the model you want to use
|
|
|
|
|
// ============================================
|
|
|
|
|
|
|
|
|
|
// Zhipu AI (智谱) - https://open.bigmodel.cn/usercenter/apikeys
|
|
|
|
|
{
|
|
|
|
|
ModelName: "glm-4.7",
|
|
|
|
|
Model: "zhipu/glm-4.7",
|
|
|
|
|
APIBase: "https://open.bigmodel.cn/api/paas/v4",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// OpenAI - https://platform.openai.com/api-keys
|
|
|
|
|
{
|
2026-03-12 08:10:29 +00:00
|
|
|
ModelName: "gpt-5.4",
|
|
|
|
|
Model: "openai/gpt-5.4",
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
APIBase: "https://api.openai.com/v1",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Anthropic Claude - https://console.anthropic.com/settings/keys
|
|
|
|
|
{
|
2026-02-20 04:15:04 +00:00
|
|
|
ModelName: "claude-sonnet-4.6",
|
|
|
|
|
Model: "anthropic/claude-sonnet-4.6",
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
APIBase: "https://api.anthropic.com/v1",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// DeepSeek - https://platform.deepseek.com/
|
|
|
|
|
{
|
|
|
|
|
ModelName: "deepseek-chat",
|
|
|
|
|
Model: "deepseek/deepseek-chat",
|
|
|
|
|
APIBase: "https://api.deepseek.com/v1",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Google Gemini - https://ai.google.dev/
|
|
|
|
|
{
|
|
|
|
|
ModelName: "gemini-2.0-flash",
|
|
|
|
|
Model: "gemini/gemini-2.0-flash-exp",
|
|
|
|
|
APIBase: "https://generativelanguage.googleapis.com/v1beta",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Qwen (通义千问) - https://dashscope.console.aliyun.com/apiKey
|
|
|
|
|
{
|
|
|
|
|
ModelName: "qwen-plus",
|
|
|
|
|
Model: "qwen/qwen-plus",
|
|
|
|
|
APIBase: "https://dashscope.aliyuncs.com/compatible-mode/v1",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Moonshot (月之暗面) - https://platform.moonshot.cn/console/api-keys
|
|
|
|
|
{
|
|
|
|
|
ModelName: "moonshot-v1-8k",
|
|
|
|
|
Model: "moonshot/moonshot-v1-8k",
|
|
|
|
|
APIBase: "https://api.moonshot.cn/v1",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Groq - https://console.groq.com/keys
|
|
|
|
|
{
|
|
|
|
|
ModelName: "llama-3.3-70b",
|
|
|
|
|
Model: "groq/llama-3.3-70b-versatile",
|
|
|
|
|
APIBase: "https://api.groq.com/openai/v1",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// OpenRouter (100+ models) - https://openrouter.ai/keys
|
2026-02-20 03:34:52 +00:00
|
|
|
{
|
|
|
|
|
ModelName: "openrouter-auto",
|
|
|
|
|
Model: "openrouter/auto",
|
|
|
|
|
APIBase: "https://openrouter.ai/api/v1",
|
|
|
|
|
},
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
{
|
2026-03-12 08:10:29 +00:00
|
|
|
ModelName: "openrouter-gpt-5.4",
|
|
|
|
|
Model: "openrouter/openai/gpt-5.4",
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
APIBase: "https://openrouter.ai/api/v1",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// NVIDIA - https://build.nvidia.com/
|
|
|
|
|
{
|
|
|
|
|
ModelName: "nemotron-4-340b",
|
|
|
|
|
Model: "nvidia/nemotron-4-340b-instruct",
|
|
|
|
|
APIBase: "https://integrate.api.nvidia.com/v1",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Cerebras - https://inference.cerebras.ai/
|
|
|
|
|
{
|
|
|
|
|
ModelName: "cerebras-llama-3.3-70b",
|
|
|
|
|
Model: "cerebras/llama-3.3-70b",
|
|
|
|
|
APIBase: "https://api.cerebras.ai/v1",
|
|
|
|
|
},
|
|
|
|
|
|
2026-03-04 17:19:03 +00:00
|
|
|
// Vivgrid - https://vivgrid.com
|
|
|
|
|
{
|
|
|
|
|
ModelName: "vivgrid-auto",
|
|
|
|
|
Model: "vivgrid/auto",
|
|
|
|
|
APIBase: "https://api.vivgrid.com/v1",
|
|
|
|
|
},
|
|
|
|
|
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
// Volcengine (火山引擎) - https://console.volcengine.com/ark
|
2026-03-12 08:10:29 +00:00
|
|
|
{
|
|
|
|
|
ModelName: "ark-code-latest",
|
|
|
|
|
Model: "volcengine/ark-code-latest",
|
|
|
|
|
APIBase: "https://ark.cn-beijing.volces.com/api/v3",
|
|
|
|
|
},
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
{
|
|
|
|
|
ModelName: "doubao-pro",
|
|
|
|
|
Model: "volcengine/doubao-pro-32k",
|
|
|
|
|
APIBase: "https://ark.cn-beijing.volces.com/api/v3",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// ShengsuanYun (神算云)
|
|
|
|
|
{
|
|
|
|
|
ModelName: "deepseek-v3",
|
|
|
|
|
Model: "shengsuanyun/deepseek-v3",
|
|
|
|
|
APIBase: "https://api.shengsuanyun.com/v1",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Antigravity (Google Cloud Code Assist) - OAuth only
|
|
|
|
|
{
|
|
|
|
|
ModelName: "gemini-flash",
|
|
|
|
|
Model: "antigravity/gemini-3-flash",
|
|
|
|
|
AuthMethod: "oauth",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// GitHub Copilot - https://github.com/settings/tokens
|
|
|
|
|
{
|
2026-03-12 08:10:29 +00:00
|
|
|
ModelName: "copilot-gpt-5.4",
|
|
|
|
|
Model: "github-copilot/gpt-5.4",
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
APIBase: "http://localhost:4321",
|
|
|
|
|
AuthMethod: "oauth",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Ollama (local) - https://ollama.com
|
|
|
|
|
{
|
|
|
|
|
ModelName: "llama3",
|
|
|
|
|
Model: "ollama/llama3",
|
|
|
|
|
APIBase: "http://localhost:11434/v1",
|
|
|
|
|
},
|
|
|
|
|
|
2026-02-20 15:31:35 +00:00
|
|
|
// Mistral AI - https://console.mistral.ai/api-keys
|
|
|
|
|
{
|
|
|
|
|
ModelName: "mistral-small",
|
|
|
|
|
Model: "mistral/mistral-small-latest",
|
|
|
|
|
APIBase: "https://api.mistral.ai/v1",
|
|
|
|
|
},
|
|
|
|
|
|
2026-02-27 03:02:07 +00:00
|
|
|
// Avian - https://avian.io
|
|
|
|
|
{
|
|
|
|
|
ModelName: "deepseek-v3.2",
|
|
|
|
|
Model: "avian/deepseek/deepseek-v3.2",
|
|
|
|
|
APIBase: "https://api.avian.io/v1",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ModelName: "kimi-k2.5",
|
|
|
|
|
Model: "avian/moonshotai/kimi-k2.5",
|
|
|
|
|
APIBase: "https://api.avian.io/v1",
|
|
|
|
|
},
|
|
|
|
|
|
2026-03-09 10:43:58 +00:00
|
|
|
// Minimax - https://api.minimaxi.com/
|
|
|
|
|
{
|
|
|
|
|
ModelName: "MiniMax-M2.5",
|
|
|
|
|
Model: "minimax/MiniMax-M2.5",
|
|
|
|
|
APIBase: "https://api.minimaxi.com/v1",
|
2026-03-23 07:51:13 +00:00
|
|
|
ExtraBody: map[string]any{"reasoning_split": true},
|
2026-03-09 10:43:58 +00:00
|
|
|
},
|
|
|
|
|
|
2026-03-11 08:33:01 +00:00
|
|
|
// LongCat - https://longcat.chat/platform
|
|
|
|
|
{
|
|
|
|
|
ModelName: "LongCat-Flash-Thinking",
|
|
|
|
|
Model: "longcat/LongCat-Flash-Thinking",
|
|
|
|
|
APIBase: "https://api.longcat.chat/openai",
|
|
|
|
|
},
|
|
|
|
|
|
2026-03-13 06:02:23 +00:00
|
|
|
// ModelScope (魔搭社区) - https://modelscope.cn/my/tokens
|
|
|
|
|
{
|
|
|
|
|
ModelName: "modelscope-qwen",
|
|
|
|
|
Model: "modelscope/Qwen/Qwen3-235B-A22B-Instruct-2507",
|
|
|
|
|
APIBase: "https://api-inference.modelscope.cn/v1",
|
|
|
|
|
},
|
|
|
|
|
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
// VLLM (local) - http://localhost:8000
|
|
|
|
|
{
|
|
|
|
|
ModelName: "local-model",
|
|
|
|
|
Model: "vllm/custom-model",
|
|
|
|
|
APIBase: "http://localhost:8000/v1",
|
|
|
|
|
},
|
2026-03-14 14:52:34 +00:00
|
|
|
|
|
|
|
|
// Azure OpenAI - https://portal.azure.com
|
|
|
|
|
// model_name is a user-friendly alias; the model field's path after "azure/" is your deployment name
|
|
|
|
|
{
|
|
|
|
|
ModelName: "azure-gpt5",
|
|
|
|
|
Model: "azure/my-gpt5-deployment",
|
|
|
|
|
APIBase: "https://your-resource.openai.azure.com",
|
|
|
|
|
},
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
|
|
|
|
Gateway: GatewayConfig{
|
2026-03-17 10:46:00 +00:00
|
|
|
Host: "127.0.0.1",
|
|
|
|
|
Port: 18790,
|
|
|
|
|
HotReload: false,
|
2026-03-23 05:14:53 +00:00
|
|
|
LogLevel: "fatal",
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
|
|
|
|
Tools: ToolsConfig{
|
2026-03-23 12:55:41 +00:00
|
|
|
FilterSensitiveData: true,
|
|
|
|
|
FilterMinLength: 8,
|
2026-02-24 12:24:32 +00:00
|
|
|
MediaCleanup: MediaCleanupConfig{
|
2026-03-05 06:53:26 +00:00
|
|
|
ToolConfig: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
2026-02-24 12:24:32 +00:00
|
|
|
MaxAge: 30,
|
|
|
|
|
Interval: 5,
|
|
|
|
|
},
|
2026-02-18 17:03:34 +00:00
|
|
|
Web: WebToolsConfig{
|
2026-03-05 06:53:26 +00:00
|
|
|
ToolConfig: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
2026-03-18 03:55:30 +00:00
|
|
|
PreferNative: true,
|
2026-02-28 12:34:33 +00:00
|
|
|
Proxy: "",
|
|
|
|
|
FetchLimitBytes: 10 * 1024 * 1024, // 10MB by default
|
2026-03-15 21:12:03 +00:00
|
|
|
Format: "plaintext",
|
2026-02-18 17:03:34 +00:00
|
|
|
Brave: BraveConfig{
|
|
|
|
|
Enabled: false,
|
2026-03-10 08:34:11 +00:00
|
|
|
MaxResults: 5,
|
|
|
|
|
},
|
|
|
|
|
Tavily: TavilyConfig{
|
|
|
|
|
Enabled: false,
|
2026-02-18 17:03:34 +00:00
|
|
|
MaxResults: 5,
|
|
|
|
|
},
|
|
|
|
|
DuckDuckGo: DuckDuckGoConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
MaxResults: 5,
|
|
|
|
|
},
|
|
|
|
|
Perplexity: PerplexityConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
MaxResults: 5,
|
|
|
|
|
},
|
2026-02-20 11:02:00 +00:00
|
|
|
SearXNG: SearXNGConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
BaseURL: "",
|
|
|
|
|
MaxResults: 5,
|
|
|
|
|
},
|
2026-03-04 06:58:12 +00:00
|
|
|
GLMSearch: GLMSearchConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
BaseURL: "https://open.bigmodel.cn/api/paas/v4/web_search",
|
|
|
|
|
SearchEngine: "search_std",
|
|
|
|
|
MaxResults: 5,
|
|
|
|
|
},
|
2026-03-22 16:51:27 +00:00
|
|
|
BaiduSearch: BaiduSearchConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
BaseURL: "https://qianfan.baidubce.com/v2/ai_search/web_search",
|
|
|
|
|
MaxResults: 10,
|
|
|
|
|
},
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
|
|
|
|
Cron: CronToolsConfig{
|
2026-03-05 06:53:26 +00:00
|
|
|
ToolConfig: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
ExecTimeoutMinutes: 5,
|
2026-03-17 01:44:32 +00:00
|
|
|
AllowCommand: true,
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
2026-02-20 09:16:42 +00:00
|
|
|
Exec: ExecConfig{
|
2026-03-05 06:53:26 +00:00
|
|
|
ToolConfig: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
2026-02-20 09:16:42 +00:00
|
|
|
EnableDenyPatterns: true,
|
2026-03-11 08:33:01 +00:00
|
|
|
AllowRemote: true,
|
2026-03-05 09:20:11 +00:00
|
|
|
TimeoutSeconds: 60,
|
2026-02-20 09:16:42 +00:00
|
|
|
},
|
2026-02-20 10:55:04 +00:00
|
|
|
Skills: SkillsToolsConfig{
|
2026-03-05 06:53:26 +00:00
|
|
|
ToolConfig: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
2026-02-20 10:55:04 +00:00
|
|
|
Registries: SkillsRegistriesConfig{
|
|
|
|
|
ClawHub: ClawHubRegistryConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
BaseURL: "https://clawhub.ai",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
MaxConcurrentSearches: 2,
|
|
|
|
|
SearchCache: SearchCacheConfig{
|
|
|
|
|
MaxSize: 50,
|
|
|
|
|
TTLSeconds: 300,
|
|
|
|
|
},
|
|
|
|
|
},
|
feat(feishu,tools): add outbound media delivery via send_file tool (#1156)
* feat(feishu): implement SendMedia and add send_file tool
Add outbound media support for the Feishu channel so the agent can send
images and files to users via the MediaStore pipeline.
Feishu channel:
- SendMedia dispatches media parts as image or file uploads
- sendImage uploads via Image.Create then sends image message
- sendFile uploads via File.Create then sends file message
- feishuFileType maps extensions to Feishu file_type values
send_file tool:
- New tool lets the LLM send a local file to the current chat
- Validates path, registers file in MediaStore, returns media ref
- Agent loop wires tool registration, MediaStore propagation, and
context updates
Tested on Radxa Cubie A7A (arm64) with Feishu websocket channel.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(agent): publish outbound media regardless of SendResponse flag
The SendResponse flag controls whether the agent loop publishes the
final text response (callers that publish it themselves set this to
false). However, the media publish path was also gated behind this
flag, which meant tool-produced media was silently dropped for normal
channel messages.
Media should be published immediately when a tool returns media refs,
independent of how the text response is delivered.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(tools): use magic-bytes MIME detection and add file size limit to send_file
- Replace hardcoded extension-to-MIME map with h2non/filetype (magic
bytes) + mime.TypeByExtension fallback, consistent with the vision
pipeline in resolveMediaRefs
- Add configurable max file size check (defaults to config.DefaultMaxMediaSize,
20 MB) to prevent oversized uploads
- Add tests for magic-bytes detection, extension fallback, size limit,
and default max size
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor(agent): add ForEachTool to AgentRegistry for cross-agent tool lookup
Extract the pattern of iterating agents to find a named tool into
AgentRegistry.ForEachTool, simplifying SetMediaStore propagation.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(agent,tools): adapt send_file to ctx-based channel injection after upstream refactor
Replace ContextualTool interface (removed upstream) with direct ctx
reading in SendFileTool.Execute, using ToolChannel/ToolChatID helpers.
Remove updateToolContexts which is no longer needed since ExecuteWithContext
already injects channel/chatID into ctx for all tools.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat(tools): support toggling send_file tool via config
Add SendFileConfig with Enabled field to ToolsConfig, defaulting to
true. Wrap send_file tool registration in loop.go with the config
check, consistent with the pattern used by other tools.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 11:42:52 +00:00
|
|
|
SendFile: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
2026-02-21 05:28:15 +00:00
|
|
|
MCP: MCPConfig{
|
2026-03-05 06:53:26 +00:00
|
|
|
ToolConfig: ToolConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
},
|
2026-03-09 17:21:49 +00:00
|
|
|
Discovery: ToolDiscoveryConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
TTL: 5,
|
|
|
|
|
MaxSearchResults: 5,
|
|
|
|
|
UseBM25: true,
|
|
|
|
|
UseRegex: false,
|
|
|
|
|
},
|
2026-02-21 05:28:15 +00:00
|
|
|
Servers: map[string]MCPServerConfig{},
|
|
|
|
|
},
|
2026-03-05 06:53:26 +00:00
|
|
|
AppendFile: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
|
|
|
|
EditFile: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
|
|
|
|
FindSkills: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
|
|
|
|
I2C: ToolConfig{
|
|
|
|
|
Enabled: false, // Hardware tool - Linux only
|
|
|
|
|
},
|
|
|
|
|
InstallSkill: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
|
|
|
|
ListDir: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
|
|
|
|
Message: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
2026-03-09 08:32:21 +00:00
|
|
|
ReadFile: ReadFileToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
MaxReadFileSize: 64 * 1024, // 64KB
|
2026-03-05 06:53:26 +00:00
|
|
|
},
|
|
|
|
|
Spawn: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
2026-03-17 06:41:43 +00:00
|
|
|
SpawnStatus: ToolConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
},
|
2026-03-05 06:53:26 +00:00
|
|
|
SPI: ToolConfig{
|
|
|
|
|
Enabled: false, // Hardware tool - Linux only
|
|
|
|
|
},
|
|
|
|
|
Subagent: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
|
|
|
|
WebFetch: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
|
|
|
|
WriteFile: ToolConfig{
|
|
|
|
|
Enabled: true,
|
|
|
|
|
},
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
|
|
|
|
Heartbeat: HeartbeatConfig{
|
|
|
|
|
Enabled: true,
|
feat(config): add complete model_list template with all 17 providers
- Include all 17 supported providers in default config as templates
- Each entry has model_name, model, api_base, and empty api_key
- Add comments with API key links for each provider
- Keep onboard message simple (only OpenRouter and Ollama)
- Fix duplicate model_name (cerebras-llama-3.3-70b)
Providers included:
Zhipu, OpenAI, Anthropic, DeepSeek, Gemini, Qwen, Moonshot,
Groq, OpenRouter, NVIDIA, Cerebras, Volcengine, ShengsuanYun,
Antigravity, GitHub Copilot, Ollama, VLLM
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:30:09 +00:00
|
|
|
Interval: 30,
|
2026-02-18 17:03:34 +00:00
|
|
|
},
|
|
|
|
|
Devices: DevicesConfig{
|
|
|
|
|
Enabled: false,
|
|
|
|
|
MonitorUSB: true,
|
|
|
|
|
},
|
2026-03-11 08:33:01 +00:00
|
|
|
Voice: VoiceConfig{
|
2026-03-22 11:51:32 +00:00
|
|
|
ModelName: "",
|
2026-03-11 08:33:01 +00:00
|
|
|
EchoTranscription: false,
|
|
|
|
|
},
|
2026-03-10 09:42:05 +00:00
|
|
|
BuildInfo: BuildInfo{
|
|
|
|
|
Version: Version,
|
|
|
|
|
GitCommit: GitCommit,
|
|
|
|
|
BuildTime: BuildTime,
|
|
|
|
|
GoVersion: GoVersion,
|
|
|
|
|
},
|
2026-03-21 17:55:00 +00:00
|
|
|
security: &SecurityConfig{
|
|
|
|
|
ModelList: map[string]ModelSecurityEntry{},
|
2026-03-24 02:26:11 +00:00
|
|
|
Channels: &ChannelsSecurity{},
|
|
|
|
|
Web: &WebToolsSecurity{},
|
|
|
|
|
Skills: &SkillsSecurity{},
|
2026-03-21 17:55:00 +00:00
|
|
|
},
|
2026-02-18 17:03:34 +00:00
|
|
|
}
|
|
|
|
|
}
|