Skip to content

Commit 2823438

Browse files
committed
update chat model section
1 parent 850fe4f commit 2823438

File tree

11 files changed

+25
-25
lines changed

11 files changed

+25
-25
lines changed

docs/docs.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@
5959
"icon": "comments",
6060
"pages": [
6161
"/model-api/docs/task/chat",
62-
"/model-api/docs/task/chat-closed-source",
6362
"/model-api/docs/task/audio-text-to-text",
6463
"/model-api/docs/task/image-text-to-text",
65-
"/model-api/docs/task/video-text-to-text"
64+
"/model-api/docs/task/video-text-to-text",
65+
"/model-api/docs/task/chat-closed-source"
6666
]
6767
},
6868
{

docs/http-reference/examples/open-source/audio-text-to-text/openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"/models/v2/Qwen/Qwen2-Audio-7B-Instruct": {
2626
"post": {
2727
"summary": "audio-text-to-text",
28-
"description": "Generate text from an initial message chain that may contain audio for applications like story generation, dialogue systems, and creative writing",
28+
"description": "Chat with AI models using text and audio. Also known as audio-text-to-text",
2929
"operationId": "audio-text-to-text",
3030
"requestBody": {
3131
"description": "Schema for audio-text-to-text models",

docs/http-reference/examples/open-source/chat/openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"/models/v2/Qwen/Qwen3-4B": {
2626
"post": {
2727
"summary": "chat",
28-
"description": "Generate text from an initial message chain for applications like story generation, dialogue systems, and creative writing",
28+
"description": "Use the latest AI chat models",
2929
"operationId": "chat",
3030
"requestBody": {
3131
"description": "Schema for chat models",

docs/http-reference/examples/open-source/image-text-to-text/openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"/models/v2/google/gemma-3-4b-it": {
2626
"post": {
2727
"summary": "image-text-to-text",
28-
"description": "Generate text from an initial message chain that may contain images for applications like story generation, dialogue systems, and creative writing",
28+
"description": "Chat with AI models using text and images. Also known as image-text-to-text",
2929
"operationId": "image-text-to-text",
3030
"requestBody": {
3131
"description": "Schema for image-text-to-text models",

docs/http-reference/examples/open-source/video-text-to-text/openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"/models/v2/llava-hf/LLaVA-NeXT-Video-7B-hf": {
2626
"post": {
2727
"summary": "video-text-to-text",
28-
"description": "Generate text from an initial message chain that may contain videos for applications like story generation, dialogue systems, and creative writing",
28+
"description": "Chat with AI models using text and videos. Also known as video-text-to-text",
2929
"operationId": "video-text-to-text",
3030
"requestBody": {
3131
"description": "Schema for video-text-to-text models",

docs/model-api/docs/task/audio-text-to-text.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: 'chat (audio-text-to-text)'
3-
description: Generate text from an initial message chain that may contain audio for applications like story generation, dialogue systems, and creative writing
2+
title: 'Multimodal - Audio'
3+
description: Chat with AI models using text and audio. Also known as audio-text-to-text
44
icon: 'comments'
55
mode: 'wide'
66
---

docs/model-api/docs/task/chat-closed-source.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 'chat (closed-source)'
2+
title: 'Closed source models'
33
description: 'Using chat and chat multi-modal models with closed source providers (OpenAI, Anthropic, etc)'
44
icon: 'comments'
55
mode: 'wide'
@@ -47,10 +47,10 @@ messages = [
4747
{"role": "user", "content": "Hello bot, what is the capital of England?"},
4848
]
4949
# send to model
50-
output, error, provider = model.run(messages)
50+
result = model.run(messages)
5151
5252
# `provider` is the raw OpenAI output
53-
print({ "error": error, "output": output, "provider": provider })
53+
print({ "error": result.error, "output": result.output, "provider": result.provider })
5454
````
5555
5656
```bash http

docs/model-api/docs/task/chat.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: 'chat'
3-
description: Generate text from an initial message chain for applications like story generation, dialogue systems, and creative writing
2+
title: 'Get started'
3+
description: Use the latest AI chat models
44
icon: 'comments'
55
mode: 'wide'
66
---

docs/model-api/docs/task/image-text-to-text.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: 'chat (image-text-to-text)'
3-
description: Generate text from an initial message chain that may contain images for applications like story generation, dialogue systems, and creative writing
2+
title: 'Multimodal - Vision'
3+
description: Chat with AI models using text and images. Also known as image-text-to-text
44
icon: 'comments'
55
mode: 'wide'
66
---

docs/model-api/docs/task/video-text-to-text.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: 'chat (video-text-to-text)'
3-
description: Generate text from an initial message chain that may contain videos for applications like story generation, dialogue systems, and creative writing
2+
title: 'Multimodal - Video'
3+
description: Chat with AI models using text and videos. Also known as video-text-to-text
44
icon: 'comments'
55
mode: 'wide'
66
---

0 commit comments

Comments
 (0)