modified README.md +4 -1
| @@ -1,6 +1,5 @@ |
| 1 | 1 | # [Docker Agent] Work with `llama.cpp` |
| 2 | 2 | |
| 3 | | - |
| 4 | 3 | ## Prerequisites |
| 5 | 4 | |
| 6 | 5 | ### Install `llama.cpp` |
| @@ -42,6 +41,8 @@ curl http://localhost:8080/v1/chat/completions \ |
| 42 | 41 | # {"choices":[{"finish_reason":"stop","index":0,"message":{"role":"assistant","content":"Hello!"}}], ... |
| 43 | 42 | ``` |
| 44 | 43 | |
| 44 | + |
| 45 | + |
| 45 | 46 | ## Install Docker Agent |
| 46 | 47 | |
| 47 | 48 | > 🚧 work in progress |
| @@ -54,6 +55,7 @@ providers: |
| 54 | 55 | llamacpp: |
| 55 | 56 | api_type: openai_chatcompletions |
| 56 | 57 | base_url: http://localhost:8080/v1 |
| 58 | + #base_url: http://host.docker.internal:8080/v1 |
| 57 | 59 | |
| 58 | 60 | models: |
| 59 | 61 | mellum2: |
| @@ -89,3 +91,4 @@ docker agent run agent.yaml |
| 89 | 91 | |
| 90 | 92 |  |
| 91 | 93 |  |
| 94 | + |
| @@ -1,6 +1,5 @@ |
| 1 | # [Docker Agent] Work with `llama.cpp` | 1 | # [Docker Agent] Work with `llama.cpp` |
| 2 | | 2 | |
| 3 | - | | |
| 4 | ## Prerequisites | 3 | ## Prerequisites |
| 5 | | 4 | |
| 6 | ### Install `llama.cpp` | 5 | ### Install `llama.cpp` |
| @@ -42,6 +41,8 @@ curl http://localhost:8080/v1/chat/completions \ |
| 42 | # {"choices":[{"finish_reason":"stop","index":0,"message":{"role":"assistant","content":"Hello!"}}], ... | 41 | # {"choices":[{"finish_reason":"stop","index":0,"message":{"role":"assistant","content":"Hello!"}}], ... |
| 43 | ``` | 42 | ``` |
| 44 | | 43 | |
| | 44 | + |
| | 45 | + |
| 45 | ## Install Docker Agent | 46 | ## Install Docker Agent |
| 46 | | 47 | |
| 47 | > 🚧 work in progress | 48 | > 🚧 work in progress |
| @@ -54,6 +55,7 @@ providers: |
| 54 | llamacpp: | 55 | llamacpp: |
| 55 | api_type: openai_chatcompletions | 56 | api_type: openai_chatcompletions |
| 56 | base_url: http://localhost:8080/v1 | 57 | base_url: http://localhost:8080/v1 |
| | 58 | + #base_url: http://host.docker.internal:8080/v1 |
| 57 | | 59 | |
| 58 | models: | 60 | models: |
| 59 | mellum2: | 61 | mellum2: |
| @@ -89,3 +91,4 @@ docker agent run agent.yaml |
| 89 | | 91 | |
| 90 |  | 92 |  |
| 91 |  | 93 |  |
| | 94 | + |