Skip to content

Commit 3cab335

Browse files
author
baroukh404
committed
new key added
1 parent 0d30e05 commit 3cab335

File tree

3 files changed

+151
-2
lines changed

3 files changed

+151
-2
lines changed

Source-Code/bar404 - v1.0.5.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
# Our API_KEY
1111

12-
openai.api_key = "<API_KEY>"
12+
openai.api_key = "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"
1313

1414
# your API_KEY like this : sk-fsE2pREdZ1FZYZTwjkNIT3BlbkFJtsLlyikcO6hKXsDCrO
1515

@@ -434,7 +434,7 @@ def API_FUNCTION():
434434

435435
return response["choices"][0]["text"]
436436

437-
except:
437+
except openai.KeyError:
438438

439439
return f"<b style='color:background-color: #D9534F'>{user}, un problème est survenue.Veillez réessayer."
440440

Source-Code/baroukh.key

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
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

0 commit comments

Comments
 (0)