mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-10 15:57:04 +00:00
docs: update README.md
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -39,8 +39,8 @@ docker-compose up -d
|
|||||||
### Run Your First Model
|
### Run Your First Model
|
||||||
```bash
|
```bash
|
||||||
# Download and run a model
|
# Download and run a model
|
||||||
ollama pull llama3.2
|
ollama pull gemma3
|
||||||
ollama run llama3.2 "Why is the sky blue?"
|
ollama run gemma3 "Why is the sky blue?"
|
||||||
|
|
||||||
# Interactive chat
|
# Interactive chat
|
||||||
ollama run gemma3
|
ollama run gemma3
|
||||||
@@ -52,10 +52,10 @@ All models from [ollama.com/library](https://ollama.com/library) including Llama
|
|||||||
### REST API
|
### REST API
|
||||||
```bash
|
```bash
|
||||||
# Generate response
|
# Generate response
|
||||||
curl http://localhost:11434/api/generate -d '{"model": "llama3.2", "prompt": "Hello Tesla K80!"}'
|
curl http://localhost:11434/api/generate -d '{"model": "gemma3, "prompt": "Hello Tesla K80!"}'
|
||||||
|
|
||||||
# Chat
|
# Chat
|
||||||
curl http://localhost:11434/api/chat -d '{"model": "llama3.2", "messages": [{"role": "user", "content": "Hello!"}]}'
|
curl http://localhost:11434/api/chat -d '{"model": "gemma3, "messages": [{"role": "user", "content": "Hello!"}]}'
|
||||||
```
|
```
|
||||||
|
|
||||||
## Technical Details
|
## Technical Details
|
||||||
|
|||||||
Reference in New Issue
Block a user