feat: add travel guide Graph with progressive output and image confirmation
This commit is contained in:
1 parent
fd3dcbe104
commit
73f6f0901e
13 files changed
+577
-26
No files matched your search
@@ -98,13 +98,16 @@ func TestDefaultImageCapability(t *testing.T) {
|
||||
if err := json.NewDecoder(r.Body).Decode(&request); err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
hasImage := false
|
||||
hasImage, hasTravel := false, false
|
||||
for _, tool := range request.Tools {
|
||||
if tool.Function.Name == "generate_image" {
|
||||
hasImage = true
|
||||
}
|
||||
if tool.Function.Name == travelToolName {
|
||||
hasTravel = true
|
||||
}
|
||||
}
|
||||
if hasImage != enabled {
|
||||
if hasImage != enabled || hasTravel != enabled {
|
||||
t.Errorf("生图工具 注册状态 = %v,期望 %v", hasImage, enabled)
|
||||
}
|
||||
if enabled && !strings.Contains(request.Messages[0].Content.(string), "用户只询问能否生图") {
|
||||
|
||||
Reference in new issue
Block a user