chore: docs example for opts provider (#1164)

This commit is contained in:
bog 2025-02-03 15:33:57 +01:00 committed by GitHub
parent 43269cc07f
commit ffb2a4f48d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,6 +52,15 @@ For building binary if you wish to build from source, then `cargo` is required.
version = false, -- Set this to "*" to always pull the latest release version, or set it to false to update to the latest code changes.
opts = {
-- add any opts here
-- for example
provider = "openai",
openai = {
endpoint = "https://api.openai.com/v1",
model = "gpt-4o", -- your desired model (or use gpt-4o, etc.)
timeout = 30000, -- timeout in milliseconds
temperature = 0, -- adjust if needed
max_tokens = 4096,
},
},
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
build = "make",