Skip to content

Commit d15dcfb

Browse files
author
ochafik
committed
tool-call: add output example to readme
1 parent 33ea20e commit d15dcfb

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

examples/server/README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,41 @@ Given a ChatML-formatted json description in `messages`, it returns the predicte
602602
}'
603603
```
604604

605+
<details>
606+
<summary>Show output</summary>
607+
608+
```json
609+
{
610+
"choices": [
611+
{
612+
"finish_reason": "tool",
613+
"index": 0,
614+
"message": {
615+
"content": null,
616+
"tool_calls": [
617+
{
618+
"name": "ipython",
619+
"arguments": "{\"code\":\" \\nprint(\\\"Hello, World!\\\")\"}"
620+
}
621+
],
622+
"role": "assistant"
623+
}
624+
}
625+
],
626+
"created": 1727287211,
627+
"model": "gpt-3.5-turbo",
628+
"object": "chat.completion",
629+
"usage": {
630+
"completion_tokens": 16,
631+
"prompt_tokens": 44,
632+
"total_tokens": 60
633+
},
634+
"id": "chatcmpl-Htbgh9feMmGM0LEH2hmQvwsCxq3c6Ni8"
635+
}
636+
```
637+
638+
</details>
639+
605640
### POST `/v1/embeddings`: OpenAI-compatible embeddings API
606641

607642
*Options:*

0 commit comments

Comments
 (0)