mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-06-29 11:02:17 +00:00
FIX: SRV warning should not trigger on brand new LLM (#679)
This commit is contained in:
parent
1a8532b91b
commit
b23a3a86a6
@ -6,6 +6,7 @@ import { action } from "@ember/object";
|
|||||||
import { LinkTo } from "@ember/routing";
|
import { LinkTo } from "@ember/routing";
|
||||||
import { later } from "@ember/runloop";
|
import { later } from "@ember/runloop";
|
||||||
import { inject as service } from "@ember/service";
|
import { inject as service } from "@ember/service";
|
||||||
|
import { or } from "truth-helpers";
|
||||||
import BackButton from "discourse/components/back-button";
|
import BackButton from "discourse/components/back-button";
|
||||||
import DButton from "discourse/components/d-button";
|
import DButton from "discourse/components/d-button";
|
||||||
import DToggleSwitch from "discourse/components/d-toggle-switch";
|
import DToggleSwitch from "discourse/components/d-toggle-switch";
|
||||||
@ -149,7 +150,7 @@ export default class AiLlmEditor extends Component {
|
|||||||
@route="adminPlugins.show.discourse-ai-llms"
|
@route="adminPlugins.show.discourse-ai-llms"
|
||||||
@label="discourse_ai.llms.back"
|
@label="discourse_ai.llms.back"
|
||||||
/>
|
/>
|
||||||
{{#unless @model.url_editable}}
|
{{#unless (or @model.url_editable @model.isNew)}}
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
{{icon "exclamation-circle"}}
|
{{icon "exclamation-circle"}}
|
||||||
{{I18n.t "discourse_ai.llms.srv_warning"}}
|
{{I18n.t "discourse_ai.llms.srv_warning"}}
|
||||||
@ -183,7 +184,7 @@ export default class AiLlmEditor extends Component {
|
|||||||
@content={{this.selectedProviders}}
|
@content={{this.selectedProviders}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{{#if @model.url_editable}}
|
{{#if (or @model.url_editable @model.isNew)}}
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label>{{I18n.t "discourse_ai.llms.url"}}</label>
|
<label>{{I18n.t "discourse_ai.llms.url"}}</label>
|
||||||
<Input
|
<Input
|
||||||
|
Loading…
x
Reference in New Issue
Block a user