Skip to content

Commit

Permalink
refactor(ollama): local process
Browse files Browse the repository at this point in the history
Refactor local process handling for Ollama using a container implementation
avoiding the wrapping methods.

This defaults to running the binary with an ephemeral port to avoid port
conflicts. This behaviour can be overridden my setting OLLAMA_HOST either
in the parent environment or in the values passed via WithUseLocal.

Improve API compatibility with:

- Multiplexed output streams
- State reporting
- Exec option processing
- WaitingFor customisation

Fix Container implementation:

- Port management
- Running checks
- Terminate processing
- Endpoint argument definition
- Add missing methods
- Consistent environment handling
  • Loading branch information
stevenh committed Dec 17, 2024
1 parent 1a2ec6b commit 0d0ff48
Show file tree
Hide file tree
Showing 5 changed files with 782 additions and 516 deletions.
Loading

0 comments on commit 0d0ff48

Please sign in to comment.