added should stream

This commit is contained in:
2025-07-13 05:47:31 +01:00
parent ef980f0cb5
commit 1419341e64
4 changed files with 61 additions and 47 deletions
+4 -3
View File
@@ -108,9 +108,10 @@ type ActionConfig struct {
}
type ResponseConfig struct {
Code int `json:"code" yaml:"code"`
Template string `json:"template" yaml:"template"`
Type string `json:"type" yaml:"type"`
Code int `json:"code" yaml:"code"`
Template string `json:"template" yaml:"template"`
Type string `json:"type" yaml:"type"`
ShouldStream bool `json:"shouldStream" yaml:"shouldStream"`
}
type DatasourceConfig struct {
+4 -3
View File
@@ -63,9 +63,10 @@ func ProtoConfigToAPIConfig(configs []*proto.WorkflowConfig) []*APIConfig {
for key := range protoConfig.Responses {
resp := protoConfig.Responses[key]
a.Responses[key] = ResponseConfig{
Code: int(resp.GetCode()),
Type: resp.Type,
Template: string(resp.Template),
Code: int(resp.GetCode()),
Type: resp.Type,
Template: string(resp.Template),
ShouldStream: resp.ShouldStream,
}
}