chatgpt-api/docs/modules/openai.md

103 wiersze
3.4 KiB
Markdown
Czysty Zwykły widok Historia

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-02 23:25:26 +00:00
[src/types.ts:216](https://github.com/transitive-bullshit/chatgpt-api/blob/48cb944/src/types.ts#L216)
2023-02-01 10:58:25 +00:00
2023-03-02 23:25:26 +00:00
[src/types.ts:221](https://github.com/transitive-bullshit/chatgpt-api/blob/48cb944/src/types.ts#L221)
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-02 23:25:26 +00:00
[src/types.ts:242](https://github.com/transitive-bullshit/chatgpt-api/blob/48cb944/src/types.ts#L242)
2023-03-02 05:32:33 +00:00
2023-03-02 23:25:26 +00:00
[src/types.ts:247](https://github.com/transitive-bullshit/chatgpt-api/blob/48cb944/src/types.ts#L247)
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-02 23:25:26 +00:00
[src/types.ts:333](https://github.com/transitive-bullshit/chatgpt-api/blob/48cb944/src/types.ts#L333)
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-02 23:25:26 +00:00
[src/types.ts:216](https://github.com/transitive-bullshit/chatgpt-api/blob/48cb944/src/types.ts#L216)
2023-03-02 05:32:33 +00:00
2023-03-02 23:25:26 +00:00
[src/types.ts:221](https://github.com/transitive-bullshit/chatgpt-api/blob/48cb944/src/types.ts#L221)
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-02 23:25:26 +00:00
[src/types.ts:242](https://github.com/transitive-bullshit/chatgpt-api/blob/48cb944/src/types.ts#L242)
2023-03-02 05:32:33 +00:00
2023-03-02 23:25:26 +00:00
[src/types.ts:247](https://github.com/transitive-bullshit/chatgpt-api/blob/48cb944/src/types.ts#L247)