---
title: "AI07 Model(CC GPT)"
method: POST
path: "/chat/cc-gpt-stream"
tags: ["Patsnap LLM"]
---

# AI07 Model(CC GPT)

`POST /chat/cc-gpt-stream`

## Request

- Base URL: `https://connect.patsnap.com`
- URL: `https://connect.patsnap.com/chat/cc-gpt-stream`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/docs/chat/cc-gpt-stream/post.ts> (a function with typed inputs; its response is checked against the schema)

-

## Request body `text/event-stream`

- AI07ChatCcGptStreamRequest
  - `prompt` string, required: User question Note: No more than 500 character.
  - `stream` boolean: When the interface returns results, whether to require streaming response: true: Represents needed false: Represents not needed Default value is true.

## Response `200`

Successful ai07 model(cc gpt) response.

- AI07ChatCcGptStreamResponse
  - `data` AI07ChatCcGptStreamAiCcGptResponse
    - `output` AI07ChatCcGptStreamAiPatGptOutPut
      - `usage` AI07ChatCcGptStreamAiPatGptUsage
        - `input_tokens` integer: The length of the user's question after tokenization.
        - `total_tokens` integer: The total length of tokens consumed after the model invocation is complete.
        - `output_tokens` integer: The length of the text generated by the model after tokenization.
      - `status` string: Model Return Status Note: When status = "running", the system is outputting via SSE, When status = "finished", the request has ended, When status = "length", the generated content exceeds the model's maximum length.
      - `content` string: Conversation result
  - `status` boolean, required: Status
  - `error_msg` string: Error Message
  - `error_code` integer, required: Error Code

---

[API](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api.md) - [All operations](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/patsnap/apis/patsnap-open-platform-api/revisions/c2264a0de595?raw)
