Skip to content
Snippets Groups Projects
Unverified Commit 1923e4df authored by Jiajie Zhang's avatar Jiajie Zhang Committed by GitHub
Browse files

Update metrics.py

parent 44a26405
No related branches found
No related tags found
No related merge requests found
......@@ -79,9 +79,9 @@ def query_gpt4(prompt):
tries += 1
try:
headers = {
'Authorization': "Bearer sk-coUxbkMbMVxkSfSQB3C38f3d159849D28f268bBa396eD24e"
'Authorization': "Bearer {Your Openai Key here}"
}
resp = requests.post("https://one-api.glm.ai/v1/chat/completions", json = {
resp = requests.post("https://api.openai.com/v1/chat/completions", json = {
"model": GPT_MODEL,
"messages": msg,
"temperature": 0
......@@ -106,4 +106,4 @@ def query_gpt4(prompt):
print("Max tries. Failed.")
return
return resp
\ No newline at end of file
return resp
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment