Skip to content

Commit a40edeb

Browse files
committed
docs: add example of usage extraRequestBodyParameters in adapters docs
1 parent f5d2cc8 commit a40edeb

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

adminforth/documentation/docs/tutorial/05-ListOfAdapters.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,29 @@ new CompletionAdapterGoogleGemini({
188188

189189
You can specify any gemini model you need. Default is `gemini-3-flash-preview`
190190

191+
### Adding extra request body params
192+
193+
There might be cases, whe you want to add extra body params in request, that sent to the AI provider. For those cases you can use `extraRequestBodyParameters`:
194+
195+
196+
```ts
197+
import CompletionAdapterGoogleGemini from '@adminforth/completion-adapter-google-gemini';
198+
199+
new CompletionAdapterGoogleGemini({
200+
geminiApiKey: process.env.GEMINI_API_KEY as string,
201+
model: "gemini-3-pro-preview",
202+
expert: {
203+
temperature: 0.7
204+
}
205+
//diff-add
206+
extraRequestBodyParameters: {
207+
//diff-add
208+
responseMimeType: "application/json",
209+
//diff-add
210+
}
211+
}),
212+
```
213+
191214

192215
## 🔎 Image Analysis
193216

0 commit comments

Comments
 (0)