We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d9aeb7 commit ed7c538Copy full SHA for ed7c538
1 file changed
tests/test_cli_log.py
@@ -137,23 +137,23 @@ def test_log_insert(git_repo): # pylint: disable=W0613
137
)
138
prompt2 = json.loads(result.output)[0]
139
140
- chat3 = """{
+ chat3 = f"""{{
141
"model": "gpt-3.5-turbo",
142
"messages": [
143
- {
+ {{
144
"role": "user",
145
"content": "Let's continue with Topic 1."
146
- },
147
+ }},
148
"role": "assistant",
149
"content": "Sure!"
150
- }
+ }}
151
],
152
- "parent": "%s",
+ "parent": "{prompt1['hash']}",
153
"timestamp": 1630000000,
154
"request_tokens": 300,
155
"response_tokens": 300
156
- }""" % prompt1['hash']
+ }}"""
157
result = runner.invoke(
158
main,
159
['log', '--insert', chat3]
0 commit comments