chore: replace all cn comments to en version by volc api (#313)
This commit is contained in:
@@ -156,7 +156,7 @@ func TestInvoke(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
// 创建 HTTPRequest 实例
|
||||
// Create an HTTPRequest instance
|
||||
hg, err := NewHTTPRequester(context.Background(), cfg)
|
||||
assert.NoError(t, err)
|
||||
|
||||
@@ -302,7 +302,7 @@ func TestInvoke(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
// 创建 HTTPRequest 实例
|
||||
// Create an HTTPRequest instance
|
||||
hg, err := NewHTTPRequester(context.Background(), cfg)
|
||||
assert.NoError(t, err)
|
||||
|
||||
@@ -375,7 +375,7 @@ func TestInvoke(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
// 创建 HTTPRequest 实例
|
||||
// Create an HTTPRequest instance
|
||||
hg, err := NewHTTPRequester(context.Background(), cfg)
|
||||
assert.NoError(t, err)
|
||||
|
||||
|
||||
@@ -101,8 +101,8 @@ const (
|
||||
- 输出按照下面结构体格式返回,包含提取到的字段或者追问的问题
|
||||
- 不要回复和提取无关的问题
|
||||
type Output struct {
|
||||
fields FieldInfo // 根据字段说明已经提取到的字段
|
||||
question string // 新一轮追问的问题
|
||||
fields FieldInfo // According to the field description, the fields that have been extracted
|
||||
question string // Follow-up question for the next round
|
||||
}`
|
||||
extractUserPromptSuffix = `
|
||||
- 严格以 json 格式返回答案。
|
||||
|
||||
@@ -87,7 +87,7 @@ func (t *TextProcessor) Invoke(ctx context.Context, input map[string]any) (map[s
|
||||
return nil, fmt.Errorf("input string field must string type but got %T", valueString)
|
||||
}
|
||||
values := strings.Split(valueString, t.config.Separators[0])
|
||||
// 对每个分隔符进行迭代处理
|
||||
// Iterate over each delimiter
|
||||
for _, sep := range t.config.Separators[1:] {
|
||||
var tempParts []string
|
||||
for _, part := range values {
|
||||
|
||||
Reference in New Issue
Block a user