---
title: "[Deprecated use /api/v2/chat/completions/{agent_id} instead] 返回与指定 Agent 聊天的下一条消息"
method: POST
path: "/api/v1/chat/completions/{agent_id}"
tags: ["chat", "android_app", "web_app", "evaluation"]
deprecated: true
---

# \[Deprecated use /api/v2/chat/completions/{agent_id} instead\] 返回与指定 Agent 聊天的下一条消息

`POST /api/v1/chat/completions/{agent_id}`

> **Deprecated.**

可以处理包括图片在内的各种消息类型，媒体类型应该先上传，然后将 URL 作为索引发送到此 API

## Path parameters

- `agent_id` string, required

## Request body

- ChatCompletionRequest
  - `messages` ChatMessage[], required
    - `role` string, required
    - `content` string, required
  - `stream` boolean
  - `model` string
  - `language` string
  - `request_id` string, nullable
  - `message_id` string, nullable

## Response `200`

Successful Response

- APIResponseDict
  - `code` integer
  - `message` string
  - `data` object, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2025-12-01** `6c3239768e6b` — 1 info
  - added the new optional request property `message_id`
- **2025-11-25** `05cf5f034c74` — 3 info
  - api tag `android_app` added
  - api tag `evaluation` added
  - api tag `web_app` added
- **2025-10-13** `795555ec3f57` — 1 info
  - endpoint deprecated
- **2025-09-29** `bd9470194fe1` — 1 info
  - added the new optional request property `request_id`

[Change history](https://skmtc.dev/nascentcore/apis/inty-backend/changes/api/v1/chat/completions/:agent_id/post.md)

---

[API](https://skmtc.dev/nascentcore/apis/inty-backend.md) · [All operations](https://skmtc.dev/nascentcore/apis/inty-backend/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nascentcore/inty-backend/revisions/1e014c365df2/schema)
