Files

1 line
9.3 KiB
JSON

{"repo": "alainrk/shai", "files": {"README.md": {"0441472eb3e8fc149a755ad22113a309b800ec84": {"t": 1785746381.7839365, "n": 2176, "h": "8953044f71a6f6e2", "c": "# Shai - LLM Shell\n\nShai is a command-line shell interface for chatting with Large Language Models using the OpenAI API format. Simply type your queries and get beautifully formatted responses right in your terminal.\n\n<p align=\"center\">\n <img src=\"/assets/demo.gif\" alt=\"Demo\">\n</p>\n\n## Features\n\n- Interactive shell for conversing with LLMs\n- Works with any LLM service that uses the OpenAI API format\n- Beautifully renders markdown responses in your terminal\n- Maintains conversation history for context-aware responses\n- Configurable API endpoints and models\n\n## Installation\n\n### Prerequisites\n\n- Go 1.18 or higher\n- Git\n\n### Build from Source\n\n```bash\n# Clone the repository\ngit clone https://github.com/alainrk/shai.git\ncd shai\n\n# Build and install\nmake install\n```\n\nThis will install the `shai` executable to your `$GOPATH/bin` directory, which should be in your PATH.\n\n### Manual Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/alainrk/shai.git\ncd shai\n\n# Build the application\ngo build -o shai cmd/cli/main.go\n\n# Move to a directory in your PATH\nsudo mv shai /usr/local/bin/\n```\n\n## Configuration\n\nOn first run, Shai creates a default configuration file at `~/.config/shai/config`. Edit this file to add your API key and customize settings:\n\n```\nLLM_API_KEY=your_api_key_here\n\nLLM_API_URL=https://api.openai.com/v1/chat/completions\n# For Deepseek: https://api.deepseek.com/v1/chat/completions\n\nLLM_MODEL=gpt-4\n# For Deepseek: deepseek-chat\n```\n\nYou can also specify a custom config location using the `--config` flag:\n\n```bash\nshai --config /path/to/config\n```\n\n## Usage\n\nStart the shell:\n\n```bash\nshai\n```\n\nEnter your queries at the prompt:\n\n```\nshai> What is the capital of the country where Bologna is?\n```\n\nType `exit` or `quit` to exit the shell.\n\n## Dependencies\n\n- [github.com/charmbracelet/glamour](https://github.com/charmbracelet/glamour) - Markdown rendering\n- [github.com/c-bata/go-prompt](https://github.com/c-bata/go-prompt) - Interactive prompt\n- [github.com/fatih/color](https://github.com/fatih/color) - Terminal colors\n- [github.com/spf13/viper](https://github.com/spf13/viper) - Configuration management\n\n## License\n\nMIT\n"}, "eb00ab397d8311f8dc25dc8954dbb8595e91d1b1": {"t": 1785763152.3907635, "n": 2176, "h": "8953044f71a6f6e2", "c": "# Shai - LLM Shell\n\nShai is a command-line shell interface for chatting with Large Language Models using the OpenAI API format. Simply type your queries and get beautifully formatted responses right in your terminal.\n\n<p align=\"center\">\n <img src=\"/assets/demo.gif\" alt=\"Demo\">\n</p>\n\n## Features\n\n- Interactive shell for conversing with LLMs\n- Works with any LLM service that uses the OpenAI API format\n- Beautifully renders markdown responses in your terminal\n- Maintains conversation history for context-aware responses\n- Configurable API endpoints and models\n\n## Installation\n\n### Prerequisites\n\n- Go 1.18 or higher\n- Git\n\n### Build from Source\n\n```bash\n# Clone the repository\ngit clone https://github.com/alainrk/shai.git\ncd shai\n\n# Build and install\nmake install\n```\n\nThis will install the `shai` executable to your `$GOPATH/bin` directory, which should be in your PATH.\n\n### Manual Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/alainrk/shai.git\ncd shai\n\n# Build the application\ngo build -o shai cmd/cli/main.go\n\n# Move to a directory in your PATH\nsudo mv shai /usr/local/bin/\n```\n\n## Configuration\n\nOn first run, Shai creates a default configuration file at `~/.config/shai/config`. Edit this file to add your API key and customize settings:\n\n```\nLLM_API_KEY=your_api_key_here\n\nLLM_API_URL=https://api.openai.com/v1/chat/completions\n# For Deepseek: https://api.deepseek.com/v1/chat/completions\n\nLLM_MODEL=gpt-4\n# For Deepseek: deepseek-chat\n```\n\nYou can also specify a custom config location using the `--config` flag:\n\n```bash\nshai --config /path/to/config\n```\n\n## Usage\n\nStart the shell:\n\n```bash\nshai\n```\n\nEnter your queries at the prompt:\n\n```\nshai> What is the capital of the country where Bologna is?\n```\n\nType `exit` or `quit` to exit the shell.\n\n## Dependencies\n\n- [github.com/charmbracelet/glamour](https://github.com/charmbracelet/glamour) - Markdown rendering\n- [github.com/c-bata/go-prompt](https://github.com/c-bata/go-prompt) - Interactive prompt\n- [github.com/fatih/color](https://github.com/fatih/color) - Terminal colors\n- [github.com/spf13/viper](https://github.com/spf13/viper) - Configuration management\n\n## License\n\nMIT\n"}, "404f91467c9314f19091e7403561af9edd6d8b66": {"t": 1785763154.2063184, "n": 2191, "h": "7ca404b1e4cc7bb9", "c": "# Shai - LLM Shell\n\nShai is a command-line shell interface for chatting with Large Language Models using the OpenAI API format. Simply type your queries and get beautifully formatted responses right in your terminal.\n\n<p align=\"center\">\n <img src=\"/assets/demo.gif\" alt=\"Demo\" height=\"550px\">\n</p>\n\n## Features\n\n- Interactive shell for conversing with LLMs\n- Works with any LLM service that uses the OpenAI API format\n- Beautifully renders markdown responses in your terminal\n- Maintains conversation history for context-aware responses\n- Configurable API endpoints and models\n\n## Installation\n\n### Prerequisites\n\n- Go 1.18 or higher\n- Git\n\n### Build from Source\n\n```bash\n# Clone the repository\ngit clone https://github.com/alainrk/shai.git\ncd shai\n\n# Build and install\nmake install\n```\n\nThis will install the `shai` executable to your `$GOPATH/bin` directory, which should be in your PATH.\n\n### Manual Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/alainrk/shai.git\ncd shai\n\n# Build the application\ngo build -o shai cmd/cli/main.go\n\n# Move to a directory in your PATH\nsudo mv shai /usr/local/bin/\n```\n\n## Configuration\n\nOn first run, Shai creates a default configuration file at `~/.config/shai/config`. Edit this file to add your API key and customize settings:\n\n```\nLLM_API_KEY=your_api_key_here\n\nLLM_API_URL=https://api.openai.com/v1/chat/completions\n# For Deepseek: https://api.deepseek.com/v1/chat/completions\n\nLLM_MODEL=gpt-4\n# For Deepseek: deepseek-chat\n```\n\nYou can also specify a custom config location using the `--config` flag:\n\n```bash\nshai --config /path/to/config\n```\n\n## Usage\n\nStart the shell:\n\n```bash\nshai\n```\n\nEnter your queries at the prompt:\n\n```\nshai> What is the capital of the country where Bologna is?\n```\n\nType `exit` or `quit` to exit the shell.\n\n## Dependencies\n\n- [github.com/charmbracelet/glamour](https://github.com/charmbracelet/glamour) - Markdown rendering\n- [github.com/c-bata/go-prompt](https://github.com/c-bata/go-prompt) - Interactive prompt\n- [github.com/fatih/color](https://github.com/fatih/color) - Terminal colors\n- [github.com/spf13/viper](https://github.com/spf13/viper) - Configuration management\n\n## License\n\nMIT\n"}, "8b682bea8f1f0e6f99ae3cfb6451e0f4476b00ee": {"t": 1785763156.4697182, "n": 2109, "h": "3d6a854d61d0e15e", "c": "# Shai - LLM Shell\n\nShai is a command-line shell interface for chatting with Large Language Models using the OpenAI API format. Simply type your queries and get beautifully formatted responses right in your terminal.\n\n## Features\n\n- Interactive shell for conversing with LLMs\n- Works with any LLM service that uses the OpenAI API format\n- Beautifully renders markdown responses in your terminal\n- Maintains conversation history for context-aware responses\n- Configurable API endpoints and models\n\n## Installation\n\n### Prerequisites\n\n- Go 1.18 or higher\n- Git\n\n### Build from Source\n\n```bash\n# Clone the repository\ngit clone https://github.com/alainrk/shai.git\ncd shai\n\n# Build and install\nmake install\n```\n\nThis will install the `shai` executable to your `$GOPATH/bin` directory, which should be in your PATH.\n\n### Manual Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/alainrk/shai.git\ncd shai\n\n# Build the application\ngo build -o shai cmd/cli/main.go\n\n# Move to a directory in your PATH\nsudo mv shai /usr/local/bin/\n```\n\n## Configuration\n\nOn first run, Shai creates a default configuration file at `~/.config/shai/config`. Edit this file to add your API key and customize settings:\n\n```\nLLM_API_KEY=your_api_key_here\n\nLLM_API_URL=https://api.openai.com/v1/chat/completions\n# For Deepseek: https://api.deepseek.com/v1/chat/completions\n\nLLM_MODEL=gpt-4\n# For Deepseek: deepseek-chat\n```\n\nYou can also specify a custom config location using the `--config` flag:\n\n```bash\nshai --config /path/to/config\n```\n\n## Usage\n\nStart the shell:\n\n```bash\nshai\n```\n\nEnter your queries at the prompt:\n\n```\nshai> What is the capital of the country where Bologna is?\n```\n\nType `exit` or `quit` to exit the shell.\n\n## Dependencies\n\n- [github.com/charmbracelet/glamour](https://github.com/charmbracelet/glamour) - Markdown rendering\n- [github.com/c-bata/go-prompt](https://github.com/c-bata/go-prompt) - Interactive prompt\n- [github.com/fatih/color](https://github.com/fatih/color) - Terminal colors\n- [github.com/spf13/viper](https://github.com/spf13/viper) - Configuration management\n\n## License\n\nMIT\n"}}}}