fix: 优化ollamaChatStreamChunk结构体字段格式
This commit is contained in:
@@ -27,7 +27,7 @@ type ollamaChatStreamChunk struct {
|
||||
Message *struct {
|
||||
Role string `json:"role"`
|
||||
Content string `json:"content"`
|
||||
ToolCalls []struct { `json:"tool_calls"`
|
||||
ToolCalls []struct {
|
||||
Function struct {
|
||||
Name string `json:"name"`
|
||||
Arguments interface{} `json:"arguments"`
|
||||
@@ -66,7 +66,6 @@ func ollamaStreamHandler(c *gin.Context, info *relaycommon.RelayInfo, resp *http
|
||||
var model = info.UpstreamModelName
|
||||
var responseId = common.GetUUID()
|
||||
var created = time.Now().Unix()
|
||||
var aggregatedText strings.Builder
|
||||
var toolCallIndex int
|
||||
// send start event
|
||||
start := helper.GenerateStartEmptyResponse(responseId, created, model, nil)
|
||||
|
||||
Reference in New Issue
Block a user