2023-02-01 10:58:25 +00:00
|
|
|
[chatgpt](../readme.md) / [Exports](../modules.md) / openai
|
|
|
|
|
|
|
|
# Namespace: openai
|
|
|
|
|
|
|
|
## Table of contents
|
|
|
|
|
2023-03-02 05:32:33 +00:00
|
|
|
### Interfaces
|
|
|
|
|
|
|
|
- [ChatCompletionRequestMessage](../interfaces/openai.ChatCompletionRequestMessage.md)
|
|
|
|
- [ChatCompletionResponseMessage](../interfaces/openai.ChatCompletionResponseMessage.md)
|
|
|
|
- [CreateChatCompletionDeltaResponse](../interfaces/openai.CreateChatCompletionDeltaResponse.md)
|
|
|
|
- [CreateChatCompletionRequest](../interfaces/openai.CreateChatCompletionRequest.md)
|
|
|
|
- [CreateChatCompletionResponse](../interfaces/openai.CreateChatCompletionResponse.md)
|
|
|
|
- [CreateChatCompletionResponseChoicesInner](../interfaces/openai.CreateChatCompletionResponseChoicesInner.md)
|
|
|
|
- [CreateCompletionResponseUsage](../interfaces/openai.CreateCompletionResponseUsage.md)
|
|
|
|
|
2023-02-01 10:58:25 +00:00
|
|
|
### Type Aliases
|
|
|
|
|
2023-03-02 05:32:33 +00:00
|
|
|
- [ChatCompletionRequestMessageRoleEnum](openai.md#chatcompletionrequestmessageroleenum)
|
|
|
|
- [ChatCompletionResponseMessageRoleEnum](openai.md#chatcompletionresponsemessageroleenum)
|
|
|
|
- [CreateChatCompletionRequestStop](openai.md#createchatcompletionrequeststop)
|
2023-02-01 10:58:25 +00:00
|
|
|
|
2023-03-02 05:32:33 +00:00
|
|
|
### Variables
|
2023-02-01 10:58:25 +00:00
|
|
|
|
2023-03-02 05:32:33 +00:00
|
|
|
- [ChatCompletionRequestMessageRoleEnum](openai.md#chatcompletionrequestmessageroleenum-1)
|
|
|
|
- [ChatCompletionResponseMessageRoleEnum](openai.md#chatcompletionresponsemessageroleenum-1)
|
2023-02-01 10:58:25 +00:00
|
|
|
|
2023-03-02 05:32:33 +00:00
|
|
|
## Type Aliases
|
2023-02-01 10:58:25 +00:00
|
|
|
|
2023-03-02 05:32:33 +00:00
|
|
|
### ChatCompletionRequestMessageRoleEnum
|
2023-02-01 10:58:25 +00:00
|
|
|
|
2023-03-02 05:32:33 +00:00
|
|
|
Ƭ **ChatCompletionRequestMessageRoleEnum**: typeof [`ChatCompletionRequestMessageRoleEnum`](openai.md#chatcompletionrequestmessageroleenum-1)[keyof typeof [`ChatCompletionRequestMessageRoleEnum`](openai.md#chatcompletionrequestmessageroleenum-1)]
|
2023-02-01 10:58:25 +00:00
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-03-28 03:13:37 +00:00
|
|
|
[src/types.ts:219](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L219)
|
2023-02-01 10:58:25 +00:00
|
|
|
|
2023-03-28 03:13:37 +00:00
|
|
|
[src/types.ts:224](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L224)
|
2023-02-01 10:58:25 +00:00
|
|
|
|
2023-03-02 05:32:33 +00:00
|
|
|
___
|
2023-02-01 10:58:25 +00:00
|
|
|
|
2023-03-02 05:32:33 +00:00
|
|
|
### ChatCompletionResponseMessageRoleEnum
|
2023-02-01 10:58:25 +00:00
|
|
|
|
2023-03-02 05:32:33 +00:00
|
|
|
Ƭ **ChatCompletionResponseMessageRoleEnum**: typeof [`ChatCompletionResponseMessageRoleEnum`](openai.md#chatcompletionresponsemessageroleenum-1)[keyof typeof [`ChatCompletionResponseMessageRoleEnum`](openai.md#chatcompletionresponsemessageroleenum-1)]
|
2023-02-01 10:58:25 +00:00
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-03-28 03:13:37 +00:00
|
|
|
[src/types.ts:245](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L245)
|
2023-03-02 05:32:33 +00:00
|
|
|
|
2023-03-28 03:13:37 +00:00
|
|
|
[src/types.ts:250](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L250)
|
2023-02-01 10:58:25 +00:00
|
|
|
|
|
|
|
___
|
|
|
|
|
2023-03-02 05:32:33 +00:00
|
|
|
### CreateChatCompletionRequestStop
|
|
|
|
|
|
|
|
Ƭ **CreateChatCompletionRequestStop**: `string`[] \| `string`
|
2023-02-01 10:58:25 +00:00
|
|
|
|
2023-03-02 05:32:33 +00:00
|
|
|
**`Export`**
|
2023-02-01 10:58:25 +00:00
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-03-28 03:13:37 +00:00
|
|
|
[src/types.ts:336](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L336)
|
2023-02-01 10:58:25 +00:00
|
|
|
|
2023-03-02 05:32:33 +00:00
|
|
|
## Variables
|
2023-02-01 10:58:25 +00:00
|
|
|
|
2023-03-02 05:32:33 +00:00
|
|
|
### ChatCompletionRequestMessageRoleEnum
|
2023-02-01 10:58:25 +00:00
|
|
|
|
2023-03-02 05:32:33 +00:00
|
|
|
• `Const` **ChatCompletionRequestMessageRoleEnum**: `Object`
|
2023-02-01 10:58:25 +00:00
|
|
|
|
|
|
|
#### Type declaration
|
|
|
|
|
|
|
|
| Name | Type |
|
|
|
|
| :------ | :------ |
|
2023-03-02 05:32:33 +00:00
|
|
|
| `Assistant` | ``"assistant"`` |
|
|
|
|
| `System` | ``"system"`` |
|
|
|
|
| `User` | ``"user"`` |
|
2023-02-01 10:58:25 +00:00
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-03-28 03:13:37 +00:00
|
|
|
[src/types.ts:219](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L219)
|
2023-03-02 05:32:33 +00:00
|
|
|
|
2023-03-28 03:13:37 +00:00
|
|
|
[src/types.ts:224](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L224)
|
2023-02-19 08:51:53 +00:00
|
|
|
|
|
|
|
___
|
|
|
|
|
2023-03-02 05:32:33 +00:00
|
|
|
### ChatCompletionResponseMessageRoleEnum
|
|
|
|
|
|
|
|
• `Const` **ChatCompletionResponseMessageRoleEnum**: `Object`
|
2023-02-19 08:51:53 +00:00
|
|
|
|
2023-03-02 05:32:33 +00:00
|
|
|
#### Type declaration
|
|
|
|
|
|
|
|
| Name | Type |
|
|
|
|
| :------ | :------ |
|
|
|
|
| `Assistant` | ``"assistant"`` |
|
|
|
|
| `System` | ``"system"`` |
|
|
|
|
| `User` | ``"user"`` |
|
2023-02-19 08:51:53 +00:00
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-03-28 03:13:37 +00:00
|
|
|
[src/types.ts:245](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L245)
|
2023-03-02 05:32:33 +00:00
|
|
|
|
2023-03-28 03:13:37 +00:00
|
|
|
[src/types.ts:250](https://github.com/transitive-bullshit/chatgpt-api/blob/9eac18f/src/types.ts#L250)
|