Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
7069583b
Commit
7069583b
authored
Jun 10, 2021
by
Leo Gao
Browse files
Set dummy secret key
parent
21a1178c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
tests/test_gpt3.py
tests/test_gpt3.py
+2
-0
No files found.
tests/test_gpt3.py
View file @
7069583b
...
...
@@ -10,6 +10,8 @@ import mock
import
pickle
import
hashlib
os
.
environ
[
'OPENAI_API_SECRET_KEY'
]
=
""
def
completion
(
**
kwargs
):
hash
=
hashlib
.
sha256
(
json
.
dumps
(
kwargs
,
sort_keys
=
True
).
encode
(
'utf-8'
)).
hexdigest
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment