Skip to content

Commit 3dca76e

Browse files
authored
Fixed config and added bundle (#3164)
* Fixed config and added bundle * Apply suggestions from code review Co-authored-by: Marek Nocoń <mnocon@users.noreply.github.com> * Apply suggestion from @mnocon * Apply suggestion from @mnocon
1 parent 3cf4620 commit 3dca76e

2 files changed

Lines changed: 20 additions & 14 deletions

File tree

code_samples/ai_actions/config/packages/ibexa_connector_gemini.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ ibexa_connector_gemini:
44
gemini-pro-latest:
55
label: 'Gemini Pro Latest'
66
max_tokens: 4096
7-
gemini-flash-latest:
8-
label: 'Gemini Flash Latest'
9-
max_tokens: 4096
10-
default_model: gemini-pro-latest
11-
default_max_tokens: 4096 # Must be <= the model’s max_tokens
12-
default_temperature: 0.8
13-
image_to_text:
14-
models:
15-
gemini-flash-latest:
16-
label: 'Gemini Flash Latest'
17-
max_tokens: 4096
18-
default_model: gemini-flash-latest
19-
default_max_tokens: 4096
20-
default_temperature: 1.0
7+
gemini-flash-latest:
8+
label: 'Gemini Flash Latest'
9+
max_tokens: 4096
10+
default_model: gemini-pro-latest
11+
default_max_tokens: 4096 # Must be <= the model’s max_tokens
12+
default_temperature: 0.8
13+
image_to_text:
14+
models:
15+
gemini-flash-latest:
16+
label: 'Gemini Flash Latest'
17+
max_tokens: 4096
18+
default_model: gemini-flash-latest
19+
default_max_tokens: 4096
20+
default_temperature: 1.0

docs/ai_actions/configure_ai_actions.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ Run the following command to install the package:
8989
composer require ibexa/connector-gemini
9090
```
9191

92+
Then, you **must** add the bundle to the list in `config/bundles.php` manually:
93+
94+
``` php
95+
Ibexa\Bundle\ConnectorGemini\IbexaConnectorGeminiBundle::class => ['all' => true],
96+
```
97+
9298
This command adds the feature code, including basic handlers that let you refine text or generate alternative text for images.
9399

94100
### Get API key

0 commit comments

Comments
 (0)