On first launch, aichat will guide you through the configuration.
@ -105,9 +103,9 @@ clients:
max_input_tokens: 8192
```
Take a look at the [config.example.yaml](config.example.yaml) for the complete configuration details.
Please review the [config.example.yaml](config.example.yaml) to see all available configuration options.
There are some configurations that can be set through environment variables. For more information, please refer to the [Environment Variables](https://github.com/sigoden/aichat/wiki/Environment-Variables) page.
There are some configurations that can be set through environment variables, see [Environment Variables](https://github.com/sigoden/aichat/wiki/Environment-Variables).
Simply input what you want to do in natural language, and aichat will prompt and run the command that achieves your intent.
@ -201,7 +199,7 @@ This is a **very handy feature**, which allows you to use `aichat` shell complet
To install shell integration, go to [./scripts/shell-integration](https://github.com/sigoden/aichat/tree/main/scripts/shell-integration) to download the script and source the script in rc file. After that restart your shell. You can invoke the completion with `alt+e` hotkey.
## Generate Code
### Generating code
By using the `--code` or `-c` parameter, you can specifically request pure code output, for instance:
@ -233,9 +231,11 @@ aichat --code a echo server in node.js > echo-server.js
node echo-server.js
```
**The `-c/--code` option ensures the extraction of code from Markdown.**
## Chat REPL
aichat has a powerful Chat REPL.
Aichat has a powerful Chat REPL.
The REPL supports:
@ -423,7 +423,7 @@ mkdir /tmp/app
unzip -P PASSWORD app.zip -d /tmp/app
```
AIChat with roles will be a universal tool.
Aichat with roles will be a universal tool.
```
$ aichat --role shell extract encrypted zipfile app.zip to /tmp/app