feat: xunfei support functions(stream)

This commit is contained in:
Martial BE
2024-01-03 15:40:20 +08:00
committed by Buer
parent e052009eba
commit 2810a96fd9
4 changed files with 126 additions and 64 deletions

View File

@@ -14,6 +14,8 @@ import (
)
var StopFinishReason = "stop"
var StopFinishReasonToolFunction = "tool_calls"
var StopFinishReasonCallFunction = "function_call"
type BaseProvider struct {
BaseURL string
@@ -27,7 +29,6 @@ type BaseProvider struct {
ImagesGenerations string
ImagesEdit string
ImagesVariations string
Proxy string
Context *gin.Context
Channel *model.Channel
}