GamerC0der commited on
Commit
9a73466
·
verified ·
1 Parent(s): 2860069

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -14
app.py CHANGED
@@ -72,22 +72,12 @@ def weather():
72
  def health():
73
  return jsonify({'status': 'running', 'message': 'GridLock search API'})
74
 
75
- def safe_shift_decode(text, shift):
76
- out = []
77
- for ch in text:
78
- code = ord(ch)
79
- if 32 <= code <= 126:
80
- new = 32 + ((code - 32 - shift) % 95)
81
- out.append(chr(new))
82
- else:
83
- out.append(ch)
84
- return ''.join(out)
85
-
86
  def morsify_key():
87
  prefix = "nvapi-"
88
- rest_enc = "y~Fvqm|30?3u:|mA822;:>;:m=?;=483"
89
- decoded_rest = safe_shift_decode(rest_enc, 8)
90
- return prefix + decoded_rest
 
91
 
92
  @app.route('/v1/chat/completions', methods=['POST'])
93
  def chat_completions():
 
72
  def health():
73
  return jsonify({'status': 'running', 'message': 'GridLock search API'})
74
 
 
 
 
 
 
 
 
 
 
 
 
75
  def morsify_key():
76
  prefix = "nvapi-"
77
+ middle = "wVHkDYJuia_uT9-_4e4kSQ6c0_WO9N9BPPHh9FFPieoO6UK5ibCSAdiZRv_q7y"
78
+ end1 = "y"
79
+ end2 = "f"
80
+ return prefix + middle + end1 + end2
81
 
82
  @app.route('/v1/chat/completions', methods=['POST'])
83
  def chat_completions():