Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 添加自定义API参数功能 #564

Merged
merged 8 commits into from
Dec 29, 2024

Conversation

n2yt584v2t4nh7y
Copy link
Contributor

@n2yt584v2t4nh7y n2yt584v2t4nh7y commented Dec 27, 2024

#555

改动内容

  1. 添加自定义API参数功能

    • 新增自定义参数配置界面
    • 支持添加和删除参数
    • 添加相关的多语言支持(中英文)
  2. 扩展参数类型支持

    • 新增支持的数据类型:
      • 文本 (string)
      • 数字 (number)
      • 布尔值 (boolean)
    • 根据不同类型提供相应的输入控件
    • 参数类型切换时自动重置为对应类型的默认值

发现数字输入组件有bug 鼠标点击增减按钮不能正常增减数值,不知道是什么问题。

@kangfenmao
Copy link
Collaborator

我明天看看,测试测试

@kangfenmao
Copy link
Collaborator

AnthropicProvider -> 83 行
GeminiProvider -> 95 行

也需要这个参数配置,如果这样的话,参数的配置可以组织成函数放在,BaseProvider

@kangfenmao kangfenmao self-requested a review December 29, 2024 00:45
@kangfenmao
Copy link
Collaborator

还需要增加多语言配置,俄文,日本等

Copy link
Collaborator

@kangfenmao kangfenmao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

还需要一些修改

@kangfenmao kangfenmao merged commit ed49066 into CherryHQ:main Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants