File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,15 @@ Send POST request to `/api/generate` endpoint exposed by service with question i
30
30
31
31
For example:
32
32
``` shell
33
- curl -i -H ' Content-Type: application/json' -d ' { "prompt": "Tell me about Belarus" }' -X POST http://localhost:8090/api/generate
33
+ curl -i -H ' Content-Type: application/json' \
34
+ -d ' { "prompt": "Tell me about Belarus" }' \
35
+ -X POST http://localhost:8090/api/generate
34
36
```
35
37
36
38
``` shell
37
- curl -i -H ' Content-Type: application/json' -d ' { "prompt": "Describe primitive types in Java" }' -X POST http://localhost:8090/api/generate
39
+ curl -i -H ' Content-Type: application/json' \
40
+ -d ' { "prompt": "Describe primitive types in Java" }' \
41
+ -X POST http://localhost:8090/api/generate
38
42
```
39
43
40
44
## Appendix: communication with Ollama started inside a Docker container
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ services:
19
19
- ./entrypoint.sh:/entrypoint.sh
20
20
pull_policy : missing
21
21
restart : no
22
- entrypoint : [ "/usr/bin/bash", "/entrypoint.sh", "gemma3:1b"]
22
+ entrypoint : [ "/usr/bin/bash", "/entrypoint.sh", "gemma3:1b" ]
23
23
24
24
service :
25
25
image : openjdk:21-jdk-slim
You can’t perform that action at this time.
0 commit comments