Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
ad22ace4
Unverified
Commit
ad22ace4
authored
Feb 02, 2025
by
Davide Bertoni
Committed by
GitHub
Feb 02, 2025
Browse files
docs: add missing json and shell code blocks in api.md (#8766)
parent
f4321a42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
docs/api.md
docs/api.md
+4
-4
No files found.
docs/api.md
View file @
ad22ace4
...
...
@@ -306,7 +306,7 @@ curl http://localhost:11434/api/generate -d '{
#### Response
```
```
json
{
"model"
:
"llava"
,
"created_at"
:
"2023-11-03T15:36:02.583064Z"
,
...
...
@@ -795,7 +795,7 @@ curl http://localhost:11434/api/chat -d '{
##### Request
```
```
shell
curl http://localhost:11434/api/chat
-d
'{
"model": "llama3.2",
"messages": [
...
...
@@ -870,7 +870,7 @@ If the messages array is empty, the model will be loaded into memory.
##### Request
```
```
shell
curl http://localhost:11434/api/chat
-d
'{
"model": "llama3.2",
"messages": []
...
...
@@ -897,7 +897,7 @@ If the messages array is empty and the `keep_alive` parameter is set to `0`, a m
##### Request
```
```
shell
curl http://localhost:11434/api/chat
-d
'{
"model": "llama3.2",
"messages": [],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment