chatgpt-api/docs/interfaces/ChatMessage.md

97 wiersze
1.9 KiB
Markdown

[chatgpt](../readme.md) / [Exports](../modules.md) / ChatMessage
# Interface: ChatMessage
## Table of contents
### Properties
- [conversationId](ChatMessage.md#conversationid)
- [delta](ChatMessage.md#delta)
- [detail](ChatMessage.md#detail)
- [id](ChatMessage.md#id)
- [name](ChatMessage.md#name)
- [parentMessageId](ChatMessage.md#parentmessageid)
- [role](ChatMessage.md#role)
- [text](ChatMessage.md#text)
## Properties
### conversationId
`Optional` **conversationId**: `string`
#### Defined in
[src/types.ts:79](https://github.com/transitive-bullshit/chatgpt-api/blob/bf66500/src/types.ts#L79)
___
### delta
`Optional` **delta**: `string`
#### Defined in
[src/types.ts:70](https://github.com/transitive-bullshit/chatgpt-api/blob/bf66500/src/types.ts#L70)
___
### detail
`Optional` **detail**: [`CreateChatCompletionResponse`](openai.CreateChatCompletionResponse.md) \| [`CreateChatCompletionStreamResponse`](CreateChatCompletionStreamResponse.md)
#### Defined in
[src/types.ts:71](https://github.com/transitive-bullshit/chatgpt-api/blob/bf66500/src/types.ts#L71)
___
### id
**id**: `string`
#### Defined in
[src/types.ts:66](https://github.com/transitive-bullshit/chatgpt-api/blob/bf66500/src/types.ts#L66)
___
### name
`Optional` **name**: `string`
#### Defined in
[src/types.ts:69](https://github.com/transitive-bullshit/chatgpt-api/blob/bf66500/src/types.ts#L69)
___
### parentMessageId
`Optional` **parentMessageId**: `string`
#### Defined in
[src/types.ts:76](https://github.com/transitive-bullshit/chatgpt-api/blob/bf66500/src/types.ts#L76)
___
### role
**role**: [`Role`](../modules.md#role)
#### Defined in
[src/types.ts:68](https://github.com/transitive-bullshit/chatgpt-api/blob/bf66500/src/types.ts#L68)
___
### text
**text**: `string`
#### Defined in
[src/types.ts:67](https://github.com/transitive-bullshit/chatgpt-api/blob/bf66500/src/types.ts#L67)