chatgpt-api/docs/interfaces/ChatMessage.md

97 wiersze
1.9 KiB
Markdown
Czysty Zwykły widok Historia

2023-02-01 10:58:25 +00:00
[chatgpt](../readme.md) / [Exports](../modules.md) / ChatMessage
# Interface: ChatMessage
## Table of contents
### Properties
- [conversationId](ChatMessage.md#conversationid)
2023-03-02 05:32:33 +00:00
- [delta](ChatMessage.md#delta)
2023-02-14 06:31:49 +00:00
- [detail](ChatMessage.md#detail)
2023-02-01 10:58:25 +00:00
- [id](ChatMessage.md#id)
2023-03-02 05:32:33 +00:00
- [name](ChatMessage.md#name)
2023-02-01 10:58:25 +00:00
- [parentMessageId](ChatMessage.md#parentmessageid)
- [role](ChatMessage.md#role)
- [text](ChatMessage.md#text)
## Properties
### conversationId
`Optional` **conversationId**: `string`
#### Defined in
2023-04-02 19:54:23 +00:00
[src/types.ts:79](https://github.com/transitive-bullshit/chatgpt-api/blob/bf66500/src/types.ts#L79)
2023-03-02 05:32:33 +00:00
___
### delta
`Optional` **delta**: `string`
#### Defined in
2023-04-02 19:54:23 +00:00
[src/types.ts:70](https://github.com/transitive-bullshit/chatgpt-api/blob/bf66500/src/types.ts#L70)
2023-02-14 06:31:49 +00:00
___
### detail
2023-04-02 19:54:23 +00:00
`Optional` **detail**: [`CreateChatCompletionResponse`](openai.CreateChatCompletionResponse.md) \| [`CreateChatCompletionStreamResponse`](CreateChatCompletionStreamResponse.md)
2023-02-14 06:31:49 +00:00
#### Defined in
2023-04-02 19:54:23 +00:00
[src/types.ts:71](https://github.com/transitive-bullshit/chatgpt-api/blob/bf66500/src/types.ts#L71)
2023-02-01 10:58:25 +00:00
___
### id
**id**: `string`
#### Defined in
2023-04-02 19:54:23 +00:00
[src/types.ts:66](https://github.com/transitive-bullshit/chatgpt-api/blob/bf66500/src/types.ts#L66)
2023-03-02 05:32:33 +00:00
___
### name
`Optional` **name**: `string`
#### Defined in
2023-04-02 19:54:23 +00:00
[src/types.ts:69](https://github.com/transitive-bullshit/chatgpt-api/blob/bf66500/src/types.ts#L69)
2023-02-01 10:58:25 +00:00
___
### parentMessageId
`Optional` **parentMessageId**: `string`
#### Defined in
2023-04-02 19:54:23 +00:00
[src/types.ts:76](https://github.com/transitive-bullshit/chatgpt-api/blob/bf66500/src/types.ts#L76)
2023-02-01 10:58:25 +00:00
___
### role
**role**: [`Role`](../modules.md#role)
#### Defined in
2023-04-02 19:54:23 +00:00
[src/types.ts:68](https://github.com/transitive-bullshit/chatgpt-api/blob/bf66500/src/types.ts#L68)
2023-02-01 10:58:25 +00:00
___
### text
**text**: `string`
#### Defined in
2023-04-02 19:54:23 +00:00
[src/types.ts:67](https://github.com/transitive-bullshit/chatgpt-api/blob/bf66500/src/types.ts#L67)