mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-10 15:12:12 +00:00
Improved translations of AI related stuff in settings
This commit is contained in:
parent
889aa08b4e
commit
e437bb0b7b
2 changed files with 26 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ use Jbtronics\SettingsBundle\Settings\Settings;
|
|||
use Jbtronics\SettingsBundle\Settings\SettingsParameter;
|
||||
use Jbtronics\SettingsBundle\Settings\SettingsTrait;
|
||||
use Symfony\Component\Form\Extension\Core\Type\UrlType;
|
||||
use Symfony\Component\Translation\StaticMessage;
|
||||
use Symfony\Component\Translation\TranslatableMessage as TM;
|
||||
|
||||
#[Settings(name: 'ai_lmstudio', label: new TM("settings.ai.lmstudio"))]
|
||||
|
|
@ -41,6 +42,7 @@ class LMStudioSettings implements AIPlatformSettingsInterface
|
|||
|
||||
#[SettingsParameter(label: new TM("settings.ai.lmstudio.hosturl"),
|
||||
formType: UrlType::class,
|
||||
formOptions: ["attr" => ["placeholder" => new StaticMessage("http://localhost:1234")]],
|
||||
envVar: "AI_LMSTUDIO_HOSTURL", envVarMode: EnvVarMode::OVERWRITE)]
|
||||
public ?string $hostURL = null;
|
||||
|
||||
|
|
|
|||
|
|
@ -13187,5 +13187,29 @@ Buerklin-API Authentication server:
|
|||
<target>Do not delegate to specialized info providers</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="pruvlK8" name="settings.ips.ai_extractor">
|
||||
<segment>
|
||||
<source>settings.ips.ai_extractor</source>
|
||||
<target>AI Web Extractor</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="wILs7pS" name="settings.ips.ai_extractor.description">
|
||||
<segment>
|
||||
<source>settings.ips.ai_extractor.description</source>
|
||||
<target>This info provider uses an large language model (LLM) to extract detailed part information from arbitary shop URLs.</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="1ShZ.1i" name="settings.ai.openrouter.help">
|
||||
<segment>
|
||||
<source>settings.ai.openrouter.help</source>
|
||||
<target>Access to many AI models via openrouter.ai</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="kRcgIf0" name="settings.ai.lmstudio.hosturl">
|
||||
<segment>
|
||||
<source>settings.ai.lmstudio.hosturl</source>
|
||||
<target>Host URL</target>
|
||||
</segment>
|
||||
</unit>
|
||||
</file>
|
||||
</xliff>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue