fix: number not supported

This commit is contained in:
AkaraChen
2025-01-08 17:36:26 +08:00
parent 763f91fcea
commit 3ae7787011
4 changed files with 19 additions and 5 deletions

View File

@ -1,5 +1,5 @@
import type { ToolCredential, ToolParameter } from '../types'
const toType = (type: string) => {
export const toType = (type: string) => {
switch (type) {
case 'string':
return 'text-input'