From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +0800
Subject: [PATCH] 修改
---
app/components/tools/types.ts | 15 +++++----------
1 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/app/components/tools/types.ts b/app/components/tools/types.ts
index 32c468c..f2784e9 100644
--- a/app/components/tools/types.ts
+++ b/app/components/tools/types.ts
@@ -1,5 +1,4 @@
import type { TypeWithI18N } from '../header/account-setting/model-provider-page/declarations'
-
export enum LOC {
tools = 'tools',
app = 'app',
@@ -17,10 +16,10 @@
}
export type Credential = {
- auth_type: AuthType
- api_key_header?: string
- api_key_value?: string
- api_key_header_prefix?: AuthHeaderPrefix
+ 'auth_type': AuthType
+ 'api_key_header'?: string
+ 'api_key_value'?: string
+ 'api_key_header_prefix'?: AuthHeaderPrefix
}
export enum CollectionType {
@@ -48,8 +47,6 @@
is_team_authorization: boolean
allow_delete: boolean
labels: string[]
- plugin_id?: string
- letter?: string
}
export type ToolParameter = {
@@ -69,7 +66,6 @@
max?: number
}
-// Action
export type Tool = {
name: string
author: string
@@ -77,13 +73,12 @@
description: any
parameters: ToolParameter[]
labels: string[]
- output_schema: Record<string, any>
}
export type ToolCredential = {
name: string
label: TypeWithI18N
- help: TypeWithI18N | null
+ help: TypeWithI18N
placeholder: TypeWithI18N
type: string
required: boolean
--
Gitblit v1.8.0