community: Bugfix - correct Ollama API path to avoid HTTP 307 (#17895)
Sets the correct /api/generate path, without ending /, to reduce HTTP
requests.
Reference:
https://github.com/ollama/ollama/blob/efe040f8/docs/api.md#generate-request-streaming
Before:
DEBUG: Starting new HTTP connection (1): localhost:11434
DEBUG: http://localhost:11434 "POST /api/generate/ HTTP/1.1" 307 0
DEBUG: http://localhost:11434 "POST /api/generate HTTP/1.1" 200 None
After:
DEBUG: Starting new HTTP connection (1): localhost:11434
DEBUG: http://localhost:11434 "POST /api/generate HTTP/1.1" 200 None