chatgpt-api/docs/interfaces/openai.ChatCompletionReques...

68 wiersze
1.3 KiB
Markdown
Czysty Zwykły widok Historia

2023-03-02 05:32:33 +00:00
[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
2023-03-11 11:08:14 +00:00
[src/types.ts:208](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L208)
2023-03-02 05:32:33 +00:00
___
### name
`Optional` **name**: `string`
The name of the user in a multi-user chat
**`Memberof`**
ChatCompletionRequestMessage
#### Defined in
2023-03-11 11:08:14 +00:00
[src/types.ts:214](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L214)
2023-03-02 05:32:33 +00:00
___
### role
**role**: [`ChatCompletionRequestMessageRoleEnum`](../modules/openai.md#chatcompletionrequestmessageroleenum-1)
The role of the author of this message.
**`Memberof`**
ChatCompletionRequestMessage
#### Defined in
2023-03-11 11:08:14 +00:00
[src/types.ts:202](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L202)