ShiwenNi commited on
Commit
e758480
1 Parent(s): dc20729

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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))