mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-10 22:43:29 +00:00
refac
This commit is contained in:
parent
6d8a6e6d8b
commit
3242dad8ae
1 changed files with 1 additions and 7 deletions
|
|
@ -12,13 +12,7 @@
|
|||
const i18n = getContext('i18n');
|
||||
|
||||
onMount(() => {
|
||||
// Filter out OAuth2.1 MCP tools - these cannot be set as model defaults
|
||||
// because OAuth authentication is per-user and would fail for users
|
||||
// who haven't completed the OAuth flow.
|
||||
// The `authenticated` field only exists on OAuth2.1 MCP tools.
|
||||
const availableTools = tools.filter((tool) => tool.authenticated === undefined);
|
||||
|
||||
_tools = availableTools.reduce((acc, tool) => {
|
||||
_tools = tools.reduce((acc, tool) => {
|
||||
acc[tool.id] = {
|
||||
...tool,
|
||||
selected: selectedToolIds.includes(tool.id)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue