2023-03-02 05:32:33 +00:00
|
|
|
[chatgpt](../readme.md) / [Exports](../modules.md) / [openai](../modules/openai.md) / CreateChatCompletionResponse
|
|
|
|
|
|
|
|
# Interface: CreateChatCompletionResponse
|
|
|
|
|
|
|
|
[openai](../modules/openai.md).CreateChatCompletionResponse
|
|
|
|
|
|
|
|
**`Export`**
|
|
|
|
|
|
|
|
**`Interface`**
|
|
|
|
|
|
|
|
CreateChatCompletionResponse
|
|
|
|
|
|
|
|
## Table of contents
|
|
|
|
|
|
|
|
### Properties
|
|
|
|
|
|
|
|
- [choices](openai.CreateChatCompletionResponse.md#choices)
|
|
|
|
- [created](openai.CreateChatCompletionResponse.md#created)
|
|
|
|
- [id](openai.CreateChatCompletionResponse.md#id)
|
|
|
|
- [model](openai.CreateChatCompletionResponse.md#model)
|
|
|
|
- [object](openai.CreateChatCompletionResponse.md#object)
|
|
|
|
- [usage](openai.CreateChatCompletionResponse.md#usage)
|
|
|
|
|
|
|
|
## Properties
|
|
|
|
|
|
|
|
### choices
|
|
|
|
|
|
|
|
• **choices**: [`CreateChatCompletionResponseChoicesInner`](openai.CreateChatCompletionResponseChoicesInner.md)[]
|
|
|
|
|
|
|
|
**`Memberof`**
|
|
|
|
|
|
|
|
CreateChatCompletionResponse
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-03-02 23:25:26 +00:00
|
|
|
[src/types.ts:369](https://github.com/transitive-bullshit/chatgpt-api/blob/48cb944/src/types.ts#L369)
|
2023-03-02 05:32:33 +00:00
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
### created
|
|
|
|
|
|
|
|
• **created**: `number`
|
|
|
|
|
|
|
|
**`Memberof`**
|
|
|
|
|
|
|
|
CreateChatCompletionResponse
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-03-02 23:25:26 +00:00
|
|
|
[src/types.ts:357](https://github.com/transitive-bullshit/chatgpt-api/blob/48cb944/src/types.ts#L357)
|
2023-03-02 05:32:33 +00:00
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
### id
|
|
|
|
|
|
|
|
• **id**: `string`
|
|
|
|
|
|
|
|
**`Memberof`**
|
|
|
|
|
|
|
|
CreateChatCompletionResponse
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-03-02 23:25:26 +00:00
|
|
|
[src/types.ts:345](https://github.com/transitive-bullshit/chatgpt-api/blob/48cb944/src/types.ts#L345)
|
2023-03-02 05:32:33 +00:00
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
### model
|
|
|
|
|
|
|
|
• **model**: `string`
|
|
|
|
|
|
|
|
**`Memberof`**
|
|
|
|
|
|
|
|
CreateChatCompletionResponse
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-03-02 23:25:26 +00:00
|
|
|
[src/types.ts:363](https://github.com/transitive-bullshit/chatgpt-api/blob/48cb944/src/types.ts#L363)
|
2023-03-02 05:32:33 +00:00
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
### object
|
|
|
|
|
|
|
|
• **object**: `string`
|
|
|
|
|
|
|
|
**`Memberof`**
|
|
|
|
|
|
|
|
CreateChatCompletionResponse
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-03-02 23:25:26 +00:00
|
|
|
[src/types.ts:351](https://github.com/transitive-bullshit/chatgpt-api/blob/48cb944/src/types.ts#L351)
|
2023-03-02 05:32:33 +00:00
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
### usage
|
|
|
|
|
|
|
|
• `Optional` **usage**: [`CreateCompletionResponseUsage`](openai.CreateCompletionResponseUsage.md)
|
|
|
|
|
|
|
|
**`Memberof`**
|
|
|
|
|
|
|
|
CreateChatCompletionResponse
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-03-02 23:25:26 +00:00
|
|
|
[src/types.ts:375](https://github.com/transitive-bullshit/chatgpt-api/blob/48cb944/src/types.ts#L375)
|