{"id":13621153,"url":"https://github.com/dwisiswant0/chatgptui","last_synced_at":"2025-03-24T00:32:05.554Z","repository":{"id":149994936,"uuid":"622605657","full_name":"dwisiswant0/chatgptui","owner":"dwisiswant0","description":"ChatGPT 🤖 with Textual User Interface (TUI) mode written in Go.","archived":false,"fork":false,"pushed_at":"2023-04-03T09:29:27.000Z","size":20,"stargazers_count":85,"open_issues_count":1,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-01T21:46:49.201Z","etag":null,"topics":["chatgpt","chatgpt-api","chatgpt-app","chatgpt3","chatgpt4","code-davinci","gpt","gpt-3","gpt-35-turbo","gpt-4","llm","openai","openai-chatgpt","text-davinci-003"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dwisiswant0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-04-02T15:52:21.000Z","updated_at":"2024-07-31T17:25:52.000Z","dependencies_parsed_at":"2023-06-26T00:30:27.445Z","dependency_job_id":null,"html_url":"https://github.com/dwisiswant0/chatgptui","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwisiswant0%2Fchatgptui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwisiswant0%2Fchatgptui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwisiswant0%2Fchatgptui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwisiswant0%2Fchatgptui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dwisiswant0","download_url":"https://codeload.github.com/dwisiswant0/chatgptui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221925911,"owners_count":16902781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatgpt","chatgpt-api","chatgpt-app","chatgpt3","chatgpt4","code-davinci","gpt","gpt-3","gpt-35-turbo","gpt-4","llm","openai","openai-chatgpt","text-davinci-003"],"created_at":"2024-08-01T21:01:03.020Z","updated_at":"2024-10-28T20:19:29.873Z","avatar_url":"https://github.com/dwisiswant0.png","language":"Go","funding_links":[],"categories":["Go","Applications"],"sub_categories":["AI"],"readme":"\u003ca href=\"#\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/25837540/229469147-781d4141-7f35-4957-ad76-d483bb699b16.png\" src=\"ChatGPTUI\" width=\"300px\"\u003e\u003c/a\u003e\n\nChatGPT 🤖 with Textual User Interface (TUI) mode written in Go.\n\nChatGPTUI is an interactive tool that allows users to interact with OpenAI's GPT (Generative Pre-trained Transformer) language model in real-time, using a text-based user interface (TUI). This tool provides a convenient and intuitive way to communicate with the language model and generate human-like text responses, making it an ideal tool for anyone looking to explore the capabilities of language models or create conversational applications.\n\n\u003ca href=\"#\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/25837540/229366591-b8185557-1e57-48d9-a265-9034d0ba92ac.gif\" align=\"right\" width=\"400px\"/\u003e\u003c/a\u003e\n\nChatGPTUI is designed to be easy to use and highly customizable. The tool supports a range of configuration options, allowing users to select the language model they want to use, set the length of generated responses, and more. Additionally, ChatGPTUI provides a range of keyboard shortcuts for quick and easy navigation through the available options, making the tool more user-friendly and efficient.\n\n## Install\n\n1. Grab the pre-built binary from the [releases page](https://github.com/dwisiswant0/chatgptui/releases), unpack \u0026 run! Or\n2. If you have [Go1.19+](https://go.dev/dl/) compiler installed \u0026 configured:\n\n```bash\ngo install github.com/dwisiswant0/chatgptui@latest\n```\n\n## Usage\n\nHere are all the options it supports.\n\n```console\n$ chatgptui -h\n\n  ChatGPTUI 🤖 v1.0.0\n  --\n  ChatGPT with Textual User Interface\n  made with 💖 by dw1\n\nUsage: chatgptui [options]\n\nOptions:\n  -e, --edit         Edit configuration\n  -l, --list         List all supported OpenAI model\n      --rm           Remove configuration\n  -V, --version      Show current version\n\nExamples:\n  chatgptui\n  chatgptui --edit\n```\n\n### Interactive\n\nThe TUI mode of the ChatGPT tool can be accessed by running the **`chatgptui`** command without any additional flags. Upon executing the command, you will be prompted to provide the necessary configuration inputs that are required to use the language model.\n\nThe configuration inputs may include parameters such as the OpenAI API key, model, maximum length of the generated text, etc. These settings can be adjusted to tailor the output generated by the model according to your requirements.\n\nOnce you have provided the required configuration inputs, the system will direct you to the chat view model. Here, you can start generating responses by entering your prompts into the interface. The chat view model displays the conversation history, making it easier to keep track of the ongoing conversation.\n\n#### Shortcuts\n\nTo improve the user experience and make ChatGPTUI more user-friendly, the tool offers a range of keyboard shortcuts that can be used in both the configuration and chat view models. These shortcuts allow you to perform various actions quickly, and make it easier to use the tool and interact with the language model.\n\n* `↑`/`↓`: Use the up and down arrow keys to navigate through the options in the view model.\n* `ctrl+c`/`esc`: Use these keyboard combinations to quit the ChatGPTUI.\n* `tab`: Use this key to fill in the default value for a field in the configuration view model.\n\nIn addition to those shortcuts, ChatGPTUI also provides a convenient way to clear the chat history. Simply type `/clear` or `/c` in the text area of the chat view model to clear the chat history and start a new conversation.\n\nThose keyboard shortcuts can help you streamline your workflow \u0026 increase your productivity, and save your time \u0026 make the ChatGPTUI tool more convenient to use. They allow you to navigate through the available options quickly, fill in default values easily, and clear the chat history with just a few keystrokes, improving your overall experience with the tool!\n\n#### Configurations\n\nWhen you run the  **`chatgptui`** command, it will immediately direct you to the chat view model, where you can start chatting with the language model. The chat view model will display the conversation history, and you can type in your prompt to generate a response from the model.\n\nIf you want to change any of the configuration settings, such as the model or temperature, you can use the `-e`/`--edit` flag. This will redirect you to the configuration view model, where you can modify the necessary fields according to your needs. Once you've updated the configuration, you can return to the chat view model to continue chatting with the updated settings.\n\n```bash\nchatgptui --edit\n```\n\nIn case you want to remove the configuration entirely, you can use the `--rm` flag. This will delete the configuration and all associated data, allowing you to start fresh with a new configuration.\n\n```bash\nchatgptui --rm\n```\n\n#### Models\n\nChatGPTUI provides support for multiple OpenAI language models, each with its own unique set of features and capabilities. To view a list of all the available models that you can choose from when configuring the language model, you can use the `-l`/`--list` flag.\n\nUsing the `-l` flag will display a list of all the OpenAI models that are currently supported by ChatGPTUI.\n\n```console\n$ chatgptui --list\ngpt-4-32k-0314\ngpt-4-32k\ngpt-4-0314\ngpt-4\ngpt-3.5-turbo-0301\ngpt-3.5-turbo\ntext-davinci-003\ntext-davinci-002\ntext-curie-001\ntext-babbage-001\ntext-ada-001\ntext-davinci-001\ndavinci-instruct-beta\ndavinci\ncurie-instruct-beta\ncurie\nada\nbabbage\ncode-davinci-002\ncode-cushman-001\ncode-davinci-001\n```\n\nBy viewing this list, you can easily select the model that best fits your needs, based on its capabilities and performance. Once you have selected the model you want to use, you can configure it according to your requirements using the configuration view model.\n\n## Acknowledments\n\n**ChatGPTUI** built with [sashabaranov/go-openai](https://github.com/sashabaranov/go-openai), and [bubbles](https://github.com/charmbracelet/bubbles), [bubbletea](https://github.com/charmbracelet/bubbletea) \u0026 [lipgloss](https://github.com/charmbracelet/lipgloss) by [charmbracelet](https://github.com/charmbracelet).\n\n## License\n\nContributions are welcome!\n\n**ChatGPTUI** released under MIT. See `LICENSE` file.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwisiswant0%2Fchatgptui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwisiswant0%2Fchatgptui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwisiswant0%2Fchatgptui/lists"}