ollama/server
Devon Rifkin 46cb7795e1
add ability to turn on debug request logging (#14106)
If `OLLAMA_DEBUG_LOG_REQUESTS` is set, then on server startup a temp
folder will be created. Upon any inference request, the body will be
logged to a file in this folder, as well as a small shell script to
"replay" the request using cURL.

This is just intended for debugging scenarios, not as something to turn
on normally.
2026-03-19 17:08:17 -07:00
..
internal
auth.go
auth_test.go
cloud_proxy.go cloud_proxy: for the web_search legacy path, flush on newlines (#14897) 2026-03-17 13:30:17 -07:00
cloud_proxy_test.go cloud_proxy: for the web_search legacy path, flush on newlines (#14897) 2026-03-17 13:30:17 -07:00
create.go Reapply "don't require pulling stubs for cloud models" again (#14608) 2026-03-06 14:27:47 -08:00
create_test.go
download.go
fixblobs.go
fixblobs_test.go
images.go
images_test.go
inference_request_log.go add ability to turn on debug request logging (#14106) 2026-03-19 17:08:17 -07:00
logprob.go
model.go
model_resolver.go Reapply "don't require pulling stubs for cloud models" again (#14608) 2026-03-06 14:27:47 -08:00
model_resolver_test.go Reapply "don't require pulling stubs for cloud models" again (#14608) 2026-03-06 14:27:47 -08:00
prompt.go
prompt_test.go model/renderers: fix glm-ocr image tags in renderer prompts (#14584) 2026-03-03 12:51:34 -08:00
quantization.go
quantization_test.go
routes.go add ability to turn on debug request logging (#14106) 2026-03-19 17:08:17 -07:00
routes_cloud_test.go cloud_proxy: for the web_search legacy path, flush on newlines (#14897) 2026-03-17 13:30:17 -07:00
routes_create_test.go Reapply "don't require pulling stubs for cloud models" again (#14608) 2026-03-06 14:27:47 -08:00
routes_debug_test.go sched: Model eviction for MLX 2026-03-16 17:40:29 -07:00
routes_delete_test.go Reapply "don't require pulling stubs for cloud models" again (#14608) 2026-03-06 14:27:47 -08:00
routes_generate_renderer_test.go sched: Model eviction for MLX 2026-03-16 17:40:29 -07:00
routes_generate_test.go sched: Model eviction for MLX 2026-03-16 17:40:29 -07:00
routes_harmony_streaming_test.go sched: Model eviction for MLX 2026-03-16 17:40:29 -07:00
routes_list_test.go
routes_options_test.go
routes_request_log_test.go add ability to turn on debug request logging (#14106) 2026-03-19 17:08:17 -07:00
routes_test.go
routes_web_experimental_test.go cloud_proxy: send ollama client version (#14769) 2026-03-10 15:53:25 -07:00
sched.go sched: Model eviction for MLX 2026-03-16 17:40:29 -07:00
sched_test.go sched: Model eviction for MLX 2026-03-16 17:40:29 -07:00
sparse_common.go
sparse_windows.go
test_home_test.go
upload.go