mirror of
https://github.com/zeke-chin/cursor-api.git
synced 2025-10-26 17:01:13 +08:00
add: /v1/models
This commit is contained in:
@@ -224,6 +224,7 @@ async fn main() {
|
||||
let app = Router::new()
|
||||
.route("/v1/chat/completions", post(chat_completions))
|
||||
.route("/models", get(models))
|
||||
.route("/v1/models", get(models))
|
||||
.layer(cors)
|
||||
.layer(
|
||||
TraceLayer::new_for_http()
|
||||
|
||||
Reference in New Issue
Block a user