Skip to content

Conversation

@Deroino
Copy link

@Deroino Deroino commented Nov 24, 2025

Now can easyily copy provider and model info by a single click on the model element
image
image

之前 apiFetch 无脑调用 createHeaders(),导致 DELETE 等无包体请求也被强制加上了 Content-Type: application/json。
Fastify 服务端在收到此头时会尝试解析 Body,面对空 Body 直接抛出 FST_ERR_CTP_EMPTY_JSON_BODY 错误。

修改后:仅在 options.body 存在时才添加 JSON Content-Type 头。
- 在 ProviderList 中为模型 Badge 添加点击事件
- 点击时将 '{providerName},{model}' 格式文本写入剪贴板
- 通过透传 showToast 方法实现操作后的通知反馈
- 更新 Providers 和 ProviderList 组件接口以支持 showToast 透传
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.

1 participant