From ffb2a4f48d56d7608b3c4a61fed60a0b6210c19f Mon Sep 17 00:00:00 2001
From: bog <bnovykov@gmail.com>
Date: Mon, 3 Feb 2025 15:33:57 +0100
Subject: [PATCH] chore: docs example for opts provider (#1164)

---
 README.md | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/README.md b/README.md
index de40377..f856355 100644
--- a/README.md
+++ b/README.md
@@ -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",