Update README.md
Browse files
README.md
CHANGED
|
@@ -6,7 +6,7 @@ language:
|
|
| 6 |
- en
|
| 7 |
library_name: transformers
|
| 8 |
license: mit
|
| 9 |
-
quantized_by: mradermacher
|
| 10 |
pipeline_tag: text-generation
|
| 11 |
tags:
|
| 12 |
- function-calling
|
|
@@ -75,6 +75,15 @@ ollama run qwen-7b:toolcall # without chat completion
|
|
| 75 |
|
| 76 |
|
| 77 |
### Basic Function Calling
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
```python
|
| 79 |
# Load with Ollama
|
| 80 |
import requests
|
|
|
|
| 6 |
- en
|
| 7 |
library_name: transformers
|
| 8 |
license: mit
|
| 9 |
+
quantized_by: mradermacher, Manojb
|
| 10 |
pipeline_tag: text-generation
|
| 11 |
tags:
|
| 12 |
- function-calling
|
|
|
|
| 75 |
|
| 76 |
|
| 77 |
### Basic Function Calling
|
| 78 |
+
|
| 79 |
+
for Base models:
|
| 80 |
+
```base
|
| 81 |
+
curl http://localhost:11434/api/generate -H "Content-Type: application/json" -d '{
|
| 82 |
+
"model": "qwen-7b:toolcall",
|
| 83 |
+
"prompt": "Get the current weather in San Francisco and convert to Celsius",
|
| 84 |
+
"stream": false
|
| 85 |
+
}'
|
| 86 |
+
```
|
| 87 |
```python
|
| 88 |
# Load with Ollama
|
| 89 |
import requests
|