Skip to content

Commit fa31d96

Browse files
authored
Update README.md
1 parent b8fb313 commit fa31d96

File tree

1 file changed

+30
-14
lines changed

1 file changed

+30
-14
lines changed

README.md

+30-14
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,15 @@ The prompt string can be any string, and the model's chat template will not be a
488488

489489
Example:
490490
```json
491-
"prompt": "..."
491+
{
492+
"input": {
493+
"prompt": "why sky is blue?",
494+
"sampling_params": {
495+
"temperature": 0.7,
496+
"max_tokens": 100
497+
}
498+
}
499+
}
492500
```
493501
2. `messages`
494502
Your list can contain any number of messages, and each message usually can have any role from the following list:
@@ -502,20 +510,28 @@ Your list can contain any number of messages, and each message usually can have
502510

503511
Example:
504512
```json
505-
"messages": [
506-
{
507-
"role": "system",
508-
"content": "..."
509-
},
510-
{
511-
"role": "user",
512-
"content": "..."
513-
},
514-
{
515-
"role": "assistant",
516-
"content": "..."
513+
{
514+
"input": {
515+
"messages": [
516+
{
517+
"role": "system",
518+
"content": "You are a helpful AI assistant that provides clear and concise responses."
519+
},
520+
{
521+
"role": "user",
522+
"content": "Can you explain the difference between supervised and unsupervised learning?"
523+
},
524+
{
525+
"role": "assistant",
526+
"content": "Sure! Supervised learning uses labeled data, meaning each input has a corresponding correct output. The model learns by mapping inputs to known outputs. In contrast, unsupervised learning works with unlabeled data, where the model identifies patterns, structures, or clusters without predefined answers."
527+
}
528+
],
529+
"sampling_params": {
530+
"temperature": 0.7,
531+
"max_tokens": 100
517532
}
518-
]
533+
}
534+
}
519535
```
520536

521537
</details>

0 commit comments

Comments
 (0)