Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ LICENSE = '采用 ' + MODEL_NAME + ' 模型'
|
|
47 |
|
48 |
def endpoints(api_key):
|
49 |
if api_key is not None:
|
50 |
-
if api_key.
|
51 |
return 'OPENAI'
|
52 |
else:
|
53 |
return 'GOOGLE'
|
|
|
47 |
|
48 |
def endpoints(api_key):
|
49 |
if api_key is not None:
|
50 |
+
if api_key.startswith('sk-'):
|
51 |
return 'OPENAI'
|
52 |
else:
|
53 |
return 'GOOGLE'
|