fix: correct Telegram command text and add missing commands to /help
Fixes #565: /list models now references config.json instead of config.yaml. Fixes #579: /help now includes /show agents, /list agents, /switch commands.
This commit is contained in:
parent
1789c03736
commit
f78ac3abe7
1 changed files with 4 additions and 1 deletions
|
|
@ -41,7 +41,10 @@ func (c *cmd) Help(ctx context.Context, message telego.Message) error {
|
||||||
msg := `/start - Start the bot
|
msg := `/start - Start the bot
|
||||||
/help - Show this help message
|
/help - Show this help message
|
||||||
/show [model|channel] - Show current configuration
|
/show [model|channel] - Show current configuration
|
||||||
|
/show agents - Show registered agents
|
||||||
/list [models|channels] - List available options
|
/list [models|channels] - List available options
|
||||||
|
/list agents - List registered agents
|
||||||
|
/switch model to <name> - Switch to a different model
|
||||||
`
|
`
|
||||||
_, err := c.bot.SendMessage(ctx, &telego.SendMessageParams{
|
_, err := c.bot.SendMessage(ctx, &telego.SendMessageParams{
|
||||||
ChatID: telego.ChatID{ID: message.Chat.ID},
|
ChatID: telego.ChatID{ID: message.Chat.ID},
|
||||||
|
|
@ -119,7 +122,7 @@ func (c *cmd) List(ctx context.Context, message telego.Message) error {
|
||||||
if provider == "" {
|
if provider == "" {
|
||||||
provider = "configured default"
|
provider = "configured default"
|
||||||
}
|
}
|
||||||
response = fmt.Sprintf("Configured Model: %s\nProvider: %s\n\nTo change models, update config.yaml",
|
response = fmt.Sprintf("Configured Model: %s\nProvider: %s\n\nTo change models, update config.json",
|
||||||
c.config.Agents.Defaults.Model, provider)
|
c.config.Agents.Defaults.Model, provider)
|
||||||
|
|
||||||
case "channels":
|
case "channels":
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue