Pectics commited on
Commit
cb34c2d
·
verified ·
1 Parent(s): 176b3fe

Removed API_KEY validator

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -49,13 +49,10 @@ def infer(
49
  def respond(
50
  message,
51
  history,
52
- api_key,
53
  max_tokens,
54
  temperature,
55
  top_p,
56
  ):
57
- if api_key != getenv("API_KEY"):
58
- raise ValueError("Invalid API Key")
59
  if len(history) == 0 or history[0]['role'] != 'system':
60
  messages = [{"role": "system", "content": """You are Softie, or 小软 in Chinese.
61
  You are an intelligent assistant developed by the School of Software at Hefei University of Technology.
 
49
  def respond(
50
  message,
51
  history,
 
52
  max_tokens,
53
  temperature,
54
  top_p,
55
  ):
 
 
56
  if len(history) == 0 or history[0]['role'] != 'system':
57
  messages = [{"role": "system", "content": """You are Softie, or 小软 in Chinese.
58
  You are an intelligent assistant developed by the School of Software at Hefei University of Technology.