Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -71,6 +71,7 @@ class Reviewer:
|
|
71 |
reraise=True)
|
72 |
def chat_review(self, text):
|
73 |
openai.api_key = self.api # 读取api
|
|
|
74 |
review_prompt_token = 1000
|
75 |
try:
|
76 |
text_token = len(self.encoding.encode(text))
|
|
|
71 |
reraise=True)
|
72 |
def chat_review(self, text):
|
73 |
openai.api_key = self.api # 读取api
|
74 |
+
openai.api_base = self.api_base
|
75 |
review_prompt_token = 1000
|
76 |
try:
|
77 |
text_token = len(self.encoding.encode(text))
|