Complete local HTTP endpoint parity
This commit is contained in:
@@ -107,12 +107,22 @@ impl App {
|
||||
let endpoint_group = preference_group(
|
||||
"LOCAL ENDPOINT",
|
||||
column![
|
||||
checkbox(
|
||||
"Enable OpenAI-compatible endpoint",
|
||||
self.preference_draft.endpoint_enabled,
|
||||
)
|
||||
.on_toggle(Message::PreferenceEndpointEnabledChanged),
|
||||
preference_input_row(
|
||||
"Port",
|
||||
text_input("4000", &self.preference_draft.endpoint_port)
|
||||
.on_input(Message::PreferenceEndpointPortChanged),
|
||||
),
|
||||
text("Listens on 127.0.0.1. Saving a changed port restarts the local endpoint.")
|
||||
checkbox(
|
||||
"Allow browser clients (CORS)",
|
||||
self.preference_draft.endpoint_cors,
|
||||
)
|
||||
.on_toggle(Message::PreferenceEndpointCorsChanged),
|
||||
text("Listens only on 127.0.0.1. Saving changed endpoint settings restarts it.")
|
||||
.size(12),
|
||||
]
|
||||
.spacing(10),
|
||||
|
||||
Reference in New Issue
Block a user