kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
68 wiersze
1.3 KiB
Markdown
68 wiersze
1.3 KiB
Markdown
![]() |
[chatgpt](../readme.md) / [Exports](../modules.md) / [openai](../modules/openai.md) / ChatCompletionRequestMessage
|
||
|
|
||
|
# Interface: ChatCompletionRequestMessage
|
||
|
|
||
|
[openai](../modules/openai.md).ChatCompletionRequestMessage
|
||
|
|
||
|
**`Export`**
|
||
|
|
||
|
**`Interface`**
|
||
|
|
||
|
ChatCompletionRequestMessage
|
||
|
|
||
|
## Table of contents
|
||
|
|
||
|
### Properties
|
||
|
|
||
|
- [content](openai.ChatCompletionRequestMessage.md#content)
|
||
|
- [name](openai.ChatCompletionRequestMessage.md#name)
|
||
|
- [role](openai.ChatCompletionRequestMessage.md#role)
|
||
|
|
||
|
## Properties
|
||
|
|
||
|
### content
|
||
|
|
||
|
• **content**: `string`
|
||
|
|
||
|
The contents of the message
|
||
|
|
||
|
**`Memberof`**
|
||
|
|
||
|
ChatCompletionRequestMessage
|
||
|
|
||
|
#### Defined in
|
||
|
|
||
|
[src/types.ts:178](https://github.com/transitive-bullshit/chatgpt-api/blob/1e4ddd6/src/types.ts#L178)
|
||
|
|
||
|
___
|
||
|
|
||
|
### name
|
||
|
|
||
|
• `Optional` **name**: `string`
|
||
|
|
||
|
The name of the user in a multi-user chat
|
||
|
|
||
|
**`Memberof`**
|
||
|
|
||
|
ChatCompletionRequestMessage
|
||
|
|
||
|
#### Defined in
|
||
|
|
||
|
[src/types.ts:184](https://github.com/transitive-bullshit/chatgpt-api/blob/1e4ddd6/src/types.ts#L184)
|
||
|
|
||
|
___
|
||
|
|
||
|
### role
|
||
|
|
||
|
• **role**: [`ChatCompletionRequestMessageRoleEnum`](../modules/openai.md#chatcompletionrequestmessageroleenum-1)
|
||
|
|
||
|
The role of the author of this message.
|
||
|
|
||
|
**`Memberof`**
|
||
|
|
||
|
ChatCompletionRequestMessage
|
||
|
|
||
|
#### Defined in
|
||
|
|
||
|
[src/types.ts:172](https://github.com/transitive-bullshit/chatgpt-api/blob/1e4ddd6/src/types.ts#L172)
|