Skip to content

Commit f3152b8

Browse files
committed
[TASK] Inform about double use of the api_key field
1 parent 33203f4 commit f3152b8

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

Configuration/TCA/tx_aim_configuration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
],
9797
'api_key' => [
9898
'label' => 'LLL:EXT:aim/Resources/Private/Language/locallang_tca.xlf:tx_aim_configuration.columns.api_key.label',
99+
'description' => 'LLL:EXT:aim/Resources/Private/Language/locallang_tca.xlf:tx_aim_configuration.columns.api_key.description',
99100
'onChange' => 'reload',
100101
'config' => [
101102
'type' => 'input',

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ Any installed `symfony/ai-*-platform` package is **auto-discovered** at containe
7575

7676
After installation, create a provider configuration in the backend (Admin Tools > AiM > Providers) with your API key and preferred model.
7777

78+
> **Local providers (Ollama, LM Studio):** The *API Key* field doubles as the endpoint URL. Enter `http://localhost:11434` (Ollama) or `http://localhost:1234` (LM Studio) instead of a key. The available models are then fetched live from that endpoint.
79+
7880
## Usage
7981

8082
### Tier 1: Proxy (recommended)

Resources/Private/Language/locallang_tca.xlf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@
3131
<source>Default</source>
3232
</trans-unit>
3333
<trans-unit id="tx_aim_configuration.columns.api_key.label" resname="tx_aim_configuration.columns.api_key.label">
34-
<source>API Key</source>
34+
<source>API Key / Endpoint URL</source>
35+
</trans-unit>
36+
<trans-unit id="tx_aim_configuration.columns.api_key.description" resname="tx_aim_configuration.columns.api_key.description">
37+
<source>For local/self-hosted providers like Ollama or LM Studio, enter the endpoint URL (e.g. http://localhost:11434) instead of an API key.</source>
3538
</trans-unit>
3639
<trans-unit id="tx_aim_configuration.columns.model.label" resname="tx_aim_configuration.columns.model.label">
3740
<source>Model</source>

0 commit comments

Comments
 (0)