Skip to content

tsukinaha/sion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPT Bot powered by Github Models

Important

You should read this.

Supported Models

  • o1-preview
  • o1-mini
  • gpt-4o
  • gpt-4o-mini

ss

Usage

Build&Run

cargo build --release
cd target/release
./sion --config-path /path/to/config.kdl

Commands

  • /help
  • /meow <prompt>
  • /model <model> - change model
"4o" => OpenAIGPT4o,
"4o-mini" | "4om" => OpenAIGPT4oMini,
"o1-preview" | "o1p" => OpenAIGPTo1Preview,
"o1-mini" | "o1m" => OpenAIGPTo1Mini,
  • /lookmodel

Inline

  • Query should end with '喵'

Config File

$config_dir/sion/config.kdl if not specified

Example

// This config is in the KDL format: https://kdl.dev
gpt {
    // Here is gpt url, normally https://models.inference.ai.azure.com/chat/completions
    base-url "https://example.com"
    // Here is your GitHub token.
    token "token"
}
bot {
    // Here is your Telegram Bot token.
    token "token"
    // Here is your user id.
    super-user-id 123
}

About

Github Models GPT Telegram bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages