Update README.md
Browse files
README.md
CHANGED
|
@@ -85,7 +85,7 @@ curl http://localhost:8080/v1/chat/completions -d '{
|
|
| 85 |
}'
|
| 86 |
```
|
| 87 |
|
| 88 |
-
### Example 2:
|
| 89 |
|
| 90 |
```bash
|
| 91 |
curl http://localhost:8080/v1/chat/completions \
|
|
@@ -93,13 +93,13 @@ curl http://localhost:8080/v1/chat/completions \
|
|
| 93 |
-d '{
|
| 94 |
"model": "phi-4-mini-instruct-with-tools",
|
| 95 |
"messages": [
|
| 96 |
-
{"role":"system","content":"You are a helpful
|
| 97 |
-
{"role":"user","content":"
|
| 98 |
]
|
| 99 |
}'
|
| 100 |
```
|
| 101 |
|
| 102 |
-
### Example
|
| 103 |
|
| 104 |
```bash
|
| 105 |
curl http://localhost:8080/v1/chat/completions \
|
|
@@ -107,14 +107,13 @@ curl http://localhost:8080/v1/chat/completions \
|
|
| 107 |
-d '{
|
| 108 |
"model": "phi-4-mini-instruct-with-tools",
|
| 109 |
"messages": [
|
| 110 |
-
{"role":"system","content":"You are a helpful
|
| 111 |
-
{"role":"user","content":"
|
| 112 |
]
|
| 113 |
}'
|
| 114 |
```
|
| 115 |
|
| 116 |
|
| 117 |
-
|
| 118 |
## API Endpoints
|
| 119 |
|
| 120 |
The server provides a ChatGPT-compatible API with the following main endpoints:
|
|
|
|
| 85 |
}'
|
| 86 |
```
|
| 87 |
|
| 88 |
+
### Example 2: Tell a Joke
|
| 89 |
|
| 90 |
```bash
|
| 91 |
curl http://localhost:8080/v1/chat/completions \
|
|
|
|
| 93 |
-d '{
|
| 94 |
"model": "phi-4-mini-instruct-with-tools",
|
| 95 |
"messages": [
|
| 96 |
+
{"role":"system","content":"You are a helpful clown instruction assistant"},
|
| 97 |
+
{"role":"user","content":"tell me a funny joke"}
|
| 98 |
]
|
| 99 |
}'
|
| 100 |
```
|
| 101 |
|
| 102 |
+
### Example 3: Generate HTML Hello World
|
| 103 |
|
| 104 |
```bash
|
| 105 |
curl http://localhost:8080/v1/chat/completions \
|
|
|
|
| 107 |
-d '{
|
| 108 |
"model": "phi-4-mini-instruct-with-tools",
|
| 109 |
"messages": [
|
| 110 |
+
{"role":"system","content":"You are a helpful coding assistant"},
|
| 111 |
+
{"role":"user","content":"give me an html hello world document"}
|
| 112 |
]
|
| 113 |
}'
|
| 114 |
```
|
| 115 |
|
| 116 |
|
|
|
|
| 117 |
## API Endpoints
|
| 118 |
|
| 119 |
The server provides a ChatGPT-compatible API with the following main endpoints:
|