Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ require (
github.com/volcengine/volcengine-go-sdk v1.1.53
go.uber.org/zap v1.27.1
golang.org/x/oauth2 v0.32.0
google.golang.org/adk v0.3.1-0.20260123125504-aec89487da29
google.golang.org/adk v0.3.1-0.20260128143420-39c421031f6c
google.golang.org/genai v1.40.0
gopkg.in/go-playground/validator.v8 v8.18.2
gopkg.in/yaml.v3 v3.0.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ golang.org/x/tools v0.38.0/go.mod h1:yEsQ/d/YK8cjh0L6rZlY8tgtlKiBNTL14pGDJPJpYQs
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
gonum.org/v1/gonum v0.16.0 h1:5+ul4Swaf3ESvrOnidPp4GZbzf0mxVQpDCYUQE7OJfk=
gonum.org/v1/gonum v0.16.0/go.mod h1:fef3am4MQ93R2HHpKnLk4/Tbh/s0+wqD5nfa6Pnwy4E=
google.golang.org/adk v0.3.1-0.20260123125504-aec89487da29 h1:xYzqSSpn/WhNVyiieXnvYLGKPRJk4cJFgImrhsA9Pi4=
google.golang.org/adk v0.3.1-0.20260123125504-aec89487da29/go.mod h1:jVeb7Ir53+3XKTncdY7k3pVdPneKcm5+60sXpxHQnao=
google.golang.org/adk v0.3.1-0.20260128143420-39c421031f6c h1:2nJELHOSVHL2GbjHyqMoMsiuGfDsyaD7i4kUene765U=
google.golang.org/adk v0.3.1-0.20260128143420-39c421031f6c/go.mod h1:jVeb7Ir53+3XKTncdY7k3pVdPneKcm5+60sXpxHQnao=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/genai v1.40.0 h1:kYxyQSH+vsib8dvsgyLJzsVEIv5k3ZmHJyVqdvGncmc=
Expand Down
4 changes: 2 additions & 2 deletions model/openai.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ func (m *openAIModel) generateStream(ctx context.Context, openaiReq *openAIReque
}
}
}

if delta.Content != nil {
if text, ok := delta.Content.(string); ok && text != "" {
textBuffer.WriteString(text)
Expand Down Expand Up @@ -760,7 +760,7 @@ func (m *openAIModel) buildFinalResponse(text string, reasoningText string, tool
Thought: true,
})
}

if text != "" {
parts = append(parts, genai.NewPartFromText(text))
}
Expand Down