Spaces:
Sleeping
Sleeping
谢璐璟
commited on
Commit
•
8d4a67d
1
Parent(s):
e02520e
- utils/api_utils.py +2 -2
utils/api_utils.py
CHANGED
@@ -65,8 +65,8 @@ def generate_from_openai_chat_completion(
|
|
65 |
n: int = 1,
|
66 |
):
|
67 |
"""同步生成OpenAI聊天补全"""
|
68 |
-
delay = 60.0 / requests_per_minute
|
69 |
-
sleep(delay) # 简单的限流处理
|
70 |
|
71 |
responses = [
|
72 |
_throttled_openai_chat_completion_create(
|
|
|
65 |
n: int = 1,
|
66 |
):
|
67 |
"""同步生成OpenAI聊天补全"""
|
68 |
+
# delay = 60.0 / requests_per_minute
|
69 |
+
# sleep(delay) # 简单的限流处理
|
70 |
|
71 |
responses = [
|
72 |
_throttled_openai_chat_completion_create(
|