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

66 wiersze
1.3 KiB
Markdown

[chatgpt](../readme.md) / [Exports](../modules.md) / [openai](../modules/openai.md) / ChatCompletionRequestMessage
# Interface: ChatCompletionRequestMessage
[openai](../modules/openai.md).ChatCompletionRequestMessage
**`Export`**
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:227](https://github.com/transitive-bullshit/chatgpt-api/blob/fb06beb/src/types.ts#L227)
___
### name
`Optional` **name**: `string`
The name of the user in a multi-user chat
**`Memberof`**
ChatCompletionRequestMessage
#### Defined in
[src/types.ts:233](https://github.com/transitive-bullshit/chatgpt-api/blob/fb06beb/src/types.ts#L233)
___
### role
**role**: [`ChatCompletionRequestMessageRoleEnum`](../modules/openai.md#chatcompletionrequestmessageroleenum-1)
The role of the author of this message.
**`Memberof`**
ChatCompletionRequestMessage
#### Defined in
[src/types.ts:221](https://github.com/transitive-bullshit/chatgpt-api/blob/fb06beb/src/types.ts#L221)