Skip to content

Commit 3c3925b

Browse files
committed
docs: fix incorrect configuration example in README │
Correct the setup configuration example by changing: - 'api' table to 'connection' table - 'provider' to 'api_provider'
1 parent 9cfc1af commit 3c3925b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ Here is the full list of predefined command actions:
171171

172172
```lua
173173
require("codegpt").setup({
174-
api = {
175-
provider = "openai", -- or "Ollama", "Azure", etc.
174+
connection = {
175+
api_provider = "openai", -- or "Ollama", "Azure", etc.
176176
openai_api_key = vim.fn.getenv("OPENAI_API_KEY"),
177177
chat_completions_url = "https://api.openai.com/v1/chat/completions",
178178
},

0 commit comments

Comments
 (0)