Update main.py
Browse files
main.py
CHANGED
|
@@ -268,7 +268,7 @@ async def chat_completions(
|
|
| 268 |
except Exception as e:
|
| 269 |
return {"error": str(e)}
|
| 270 |
|
| 271 |
-
@app.get("/
|
| 272 |
async def list_models(api_key: str = Depends(get_api_key)):
|
| 273 |
try:
|
| 274 |
headers = {
|
|
|
|
| 268 |
except Exception as e:
|
| 269 |
return {"error": str(e)}
|
| 270 |
|
| 271 |
+
@app.get("/v1/models")
|
| 272 |
async def list_models(api_key: str = Depends(get_api_key)):
|
| 273 |
try:
|
| 274 |
headers = {
|