支持LoraID , 通过OpenAI Client设置 ExtraHeader 并在讯飞实现中支持

This commit is contained in:
ybyang
2024-11-25 14:27:03 +08:00
parent 62ab7f47ad
commit ff24d0fab8
4 changed files with 13 additions and 6 deletions

View File

@@ -15,7 +15,8 @@ type Functions struct {
type ChatRequest struct {
Header struct {
AppId string `json:"app_id"`
AppId string `json:"app_id"`
PatchId string `json:"patch_id,omitempty"`
} `json:"header"`
Parameter struct {
Chat struct {