mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-27 11:04:39 +00:00
tweak: rm openrouter warning (#17259)
This commit is contained in:
@@ -677,20 +677,6 @@ function App() {
|
|||||||
},
|
},
|
||||||
])
|
])
|
||||||
|
|
||||||
createEffect(() => {
|
|
||||||
const currentModel = local.model.current()
|
|
||||||
if (!currentModel) return
|
|
||||||
if (currentModel.providerID === "openrouter" && !kv.get("openrouter_warning", false)) {
|
|
||||||
untrack(() => {
|
|
||||||
DialogAlert.show(
|
|
||||||
dialog,
|
|
||||||
"Warning",
|
|
||||||
"While openrouter is a convenient way to access LLMs your request will often be routed to subpar providers that do not work well in our testing.\n\nFor reliable access to models check out OpenCode Zen\nhttps://opencode.ai/zen",
|
|
||||||
).then(() => kv.set("openrouter_warning", true))
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
sdk.event.on(TuiEvent.CommandExecute.type, (evt) => {
|
sdk.event.on(TuiEvent.CommandExecute.type, (evt) => {
|
||||||
command.trigger(evt.properties.command)
|
command.trigger(evt.properties.command)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user