ChatGPTNextWeb / ChatGPTNextWeb/NextChat

[Feature Request] 允许前端设置是否转发请求参数

Open
#5,285 1 comment 2 reactions 2 assignees Claimed by @lloydzhou View on GitHub
enhancement
Dominant language
TypeScript
Stars
88.8k
Forks
59.1k
PR merge metrics
No merged PRs in 30d

Description

### 🥰 需求描述

很多大模型采用了仿 openai 接口设计,但细分下来又各有细微的区别,比如 Mistral AI 的 api 接口基本仿照 openai 设计的,但是它不支持 frequency_penalty 和 presence_penalty 参数,如果请求中携带该参数,则会返回 422,文档说明:https://docs.mistral.ai/api/#tag/chat/operation/chat_completion_v1_chat_completions_post

![image](https://github.com/user-attachments/assets/1e968bf9-4508-46a3-8d4b-ce0d2464be38)

![image](https://github.com/user-attachments/assets/65168c94-0820-43dd-af6a-b1459e2e3900)

基于此,建议允许在前端设置是否转发请求参数,可以勾选掉不想转发的参数来提高软件的适用性

### 🧐 解决方案

如图,可以在这些参数增加一个勾选框,来表示发起请求时是否要携带对应的参数:

![image](https://github.com/user-attachments/assets/7cb7c4e5-c52f-43f1-8c15-cdfb414016bc)

### 📝 补充信息

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.