Feature: Add configurable LLM endpoint for Claude-compatible alternatives
This commit is contained in:
@@ -76,9 +76,27 @@ style('display:none');
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Anthropic Claude API Configuration -->
|
||||
<!-- LLM Configuration -->
|
||||
<div class="analytics-hub-settings__section">
|
||||
<h3><?php p($l->t('Anthropic Claude API')); ?></h3>
|
||||
<h3><?php p($l->t('LLM Configuration (Claude-compatible)')); ?></h3>
|
||||
|
||||
<div class="analytics-hub-settings__field">
|
||||
<label for="llm_api_endpoint">
|
||||
<?php p($l->t('API Endpoint')); ?>
|
||||
<span class="analytics-hub-settings__optional"><?php p($l->t('(Optional - defaults to Anthropic)')); ?></span>
|
||||
</label>
|
||||
<input
|
||||
type="text"
|
||||
id="llm_api_endpoint"
|
||||
name="llm_api_endpoint"
|
||||
value="<?php p($_['llm_api_endpoint']); ?>"
|
||||
placeholder="https://api.anthropic.com/v1/messages"
|
||||
autocomplete="off"
|
||||
/>
|
||||
<p class="analytics-hub-settings__hint">
|
||||
<?php p($l->t('Enter a Claude-compatible API endpoint. Leave blank to use Anthropic official API.')); ?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="analytics-hub-settings__field">
|
||||
<label for="anthropic_api_key">
|
||||
@@ -95,7 +113,7 @@ style('display:none');
|
||||
required
|
||||
/>
|
||||
<p class="analytics-hub-settings__hint">
|
||||
<?php p($l->t('Enter your Anthropic API key for AI-powered report generation.')); ?>
|
||||
<?php p($l->t('Enter your API key for AI-powered report generation.')); ?>
|
||||
</p>
|
||||
<p class="analytics-hub-settings__hint">
|
||||
<?php p($l->t('Model: claude-sonnet-4-5-20250929 (cost-effective)')); ?>
|
||||
|
||||
Reference in New Issue
Block a user