Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ footer {
|
|
37 |
|
38 |
def endpoints(api_key):
|
39 |
if api_key is not None:
|
40 |
-
if
|
41 |
model_name = "gpt-4o"
|
42 |
return 'OPENAI'
|
43 |
else:
|
|
|
37 |
|
38 |
def endpoints(api_key):
|
39 |
if api_key is not None:
|
40 |
+
if api_key.startswith(('sk-', 'sess-')):
|
41 |
model_name = "gpt-4o"
|
42 |
return 'OPENAI'
|
43 |
else:
|