langchain/libs/community/tests
Brad Erickson ecd72d26cf
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
2024-02-22 11:59:55 -05:00
..
examples community[minor]: Add pebblo safe document loader (#16862) 2024-02-12 21:56:12 -08:00
integration_tests community[minor]: Add tidb loader support (#17788) 2024-02-21 16:42:33 -08:00
unit_tests community: Bugfix - correct Ollama API path to avoid HTTP 307 (#17895) 2024-02-22 11:59:55 -05:00
__init__.py