yeeef commited on
Commit
b82d09e
1 Parent(s): 1818057

use output_data_transformations

Browse files
Files changed (1) hide show
  1. 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
- response_annotators:
42
- code_extractor:
43
- _target_: flows.message_annotators.RegexFirstOccurrenceExtractor
44
  regex: '(.*)'
45
- key: "response"
 
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