diff --git a/CHANGELOG.md b/CHANGELOG.md index 00fe37e..06e3b84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,12 +2,16 @@ ## [Unreleased] +### Changed + +* Fix config example in README.md + ### Added * Add sdk openai for image generation command * Add image generation command -## [0.5.0] +## [0.5.0] - 2024-10-13 ### Added diff --git a/README.md b/README.md index 70f0e38..bb8967e 100644 --- a/README.md +++ b/README.md @@ -51,20 +51,6 @@ Will generate a config file at `~/.config/aicli/config.ini` ## Config example -```ini -[text] -type=openai -model=gpt-4 -apiKey=yoursecretapikey -temp=0.7 - -[translate] -type=deepl -apiKey=yoursecretapikey -``` - -With type as prefix, parameter will be specific for this type, if there is no prefix, parameter will be global - ```ini [text] type=openai @@ -77,6 +63,11 @@ temp=0.7 [translate] type=deepl apiKey=yoursecretapikey + +[image] +type=openai +model=dall-e-3 +apiKey=yoursecretapikey ``` ## Integration with tmux diff --git a/config/config.go b/config/config.go index 898c6fe..65b51e6 100644 --- a/config/config.go +++ b/config/config.go @@ -23,13 +23,20 @@ var ( CONFIG_EXEMPLE = ` [text] type=openai -model=gpt-4 -apiKey=yoursecretapikey +openai-model=gpt-4 +openai-apiKey=yoursecretapikey +claude-model=claude-3-5-sonnet-20240620 +claude-apiKey=yoursecretapikey temp=0.7 [translate] type=deepl -apiKey=yoursecretapikey` +apiKey=yoursecretapikey + +[image] +type=openai +model=dall-e-3 +` ) func InitConfig() error {