use output_data_transformations
Browse files- OpenAIChatGPT4.yaml +5 -4
OpenAIChatGPT4.yaml
CHANGED
@@ -37,12 +37,13 @@ query_message_prompt_template:
|
|
37 |
- "query" # # "human_input"
|
38 |
template_format: jinja2
|
39 |
|
|
|
40 |
|
41 |
-
|
42 |
-
|
43 |
-
_target_: flows.message_annotators.RegexFirstOccurrenceExtractor
|
44 |
regex: '(.*)'
|
45 |
-
|
|
|
46 |
strip: True
|
47 |
assert_unique: True
|
48 |
verbose: True
|
|
|
37 |
- "query" # # "human_input"
|
38 |
template_format: jinja2
|
39 |
|
40 |
+
keep_raw_response: False
|
41 |
|
42 |
+
output_data_transformations:
|
43 |
+
- _target_: flows.data_transformations.RegexFirstOccurrenceExtractor
|
|
|
44 |
regex: '(.*)'
|
45 |
+
input_key: "raw_response"
|
46 |
+
output_key: "response"
|
47 |
strip: True
|
48 |
assert_unique: True
|
49 |
verbose: True
|