@@ -141,7 +141,6 @@ int main(int argc, char ** argv) {
141141 // note: routes.get_health stays the same
142142 routes.get_metrics = models_routes->proxy_get ;
143143 routes.post_props = models_routes->proxy_post ;
144- routes.get_api_show = models_routes->proxy_get ;
145144 routes.post_completions = models_routes->proxy_post ;
146145 routes.post_completions_oai = models_routes->proxy_post ;
147146 routes.post_chat_completions = models_routes->proxy_post ;
@@ -174,16 +173,13 @@ int main(int argc, char ** argv) {
174173 ctx_http.get (" /metrics" , ex_wrapper (routes.get_metrics ));
175174 ctx_http.get (" /props" , ex_wrapper (routes.get_props ));
176175 ctx_http.post (" /props" , ex_wrapper (routes.post_props ));
177- ctx_http.post (" /api/show" , ex_wrapper (routes.get_api_show ));
178176 ctx_http.get (" /models" , ex_wrapper (routes.get_models )); // public endpoint (no API key check)
179177 ctx_http.get (" /v1/models" , ex_wrapper (routes.get_models )); // public endpoint (no API key check)
180- ctx_http.get (" /api/tags" , ex_wrapper (routes.get_models )); // ollama specific endpoint. public endpoint (no API key check)
181178 ctx_http.post (" /completion" , ex_wrapper (routes.post_completions )); // legacy
182179 ctx_http.post (" /completions" , ex_wrapper (routes.post_completions ));
183180 ctx_http.post (" /v1/completions" , ex_wrapper (routes.post_completions_oai ));
184181 ctx_http.post (" /chat/completions" , ex_wrapper (routes.post_chat_completions ));
185182 ctx_http.post (" /v1/chat/completions" , ex_wrapper (routes.post_chat_completions ));
186- ctx_http.post (" /api/chat" , ex_wrapper (routes.post_chat_completions )); // ollama specific endpoint
187183 ctx_http.post (" /v1/responses" , ex_wrapper (routes.post_responses_oai ));
188184 ctx_http.post (" /responses" , ex_wrapper (routes.post_responses_oai ));
189185 ctx_http.post (" /v1/audio/transcriptions" , ex_wrapper (routes.post_transcriptions_oai ));
0 commit comments