mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-08-12 22:29:39 +04:00
Add /models and /responses endpoints (#2187)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user