Add /models and /responses endpoints (#2187)

This commit is contained in:
dmaivel
2026-07-26 11:00:58 +03:00
committed by GitHub
parent 8be938842b
commit b20bff2ae0
+2
View File
@@ -2129,12 +2129,14 @@ int main(int argc, char ** argv) {
svr->Get ("/props", handle_props);
svr->Get("/v1/props", handle_props_simple);
svr->Get ("/v1/models", handle_models);
svr->Get ("/models", handle_models);
svr->Post("/completion", handle_completions); // legacy
svr->Post("/completions", handle_completions); // legacy
svr->Post("/v1/completions", handle_completions_oai);
svr->Post("/chat/completions", handle_chat_completions);
svr->Post("/v1/chat/completions", handle_chat_completions);
svr->Post("/v1/responses", handle_responses);
svr->Post("/responses", handle_responses);
svr->Post("/v1/messages", handle_anthropic_messages);
svr->Post("/v1/messages/count_tokens", handle_anthropic_count_tokens);
svr->Post("/infill", handle_infill);