kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
103 wiersze
3.4 KiB
Markdown
103 wiersze
3.4 KiB
Markdown
[chatgpt](../readme.md) / [Exports](../modules.md) / openai
|
|
|
|
# Namespace: openai
|
|
|
|
## Table of contents
|
|
|
|
### 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)
|
|
|
|
### Type Aliases
|
|
|
|
- [ChatCompletionRequestMessageRoleEnum](openai.md#chatcompletionrequestmessageroleenum)
|
|
- [ChatCompletionResponseMessageRoleEnum](openai.md#chatcompletionresponsemessageroleenum)
|
|
- [CreateChatCompletionRequestStop](openai.md#createchatcompletionrequeststop)
|
|
|
|
### Variables
|
|
|
|
- [ChatCompletionRequestMessageRoleEnum](openai.md#chatcompletionrequestmessageroleenum-1)
|
|
- [ChatCompletionResponseMessageRoleEnum](openai.md#chatcompletionresponsemessageroleenum-1)
|
|
|
|
## Type Aliases
|
|
|
|
### ChatCompletionRequestMessageRoleEnum
|
|
|
|
Ƭ **ChatCompletionRequestMessageRoleEnum**: typeof [`ChatCompletionRequestMessageRoleEnum`](openai.md#chatcompletionrequestmessageroleenum-1)[keyof typeof [`ChatCompletionRequestMessageRoleEnum`](openai.md#chatcompletionrequestmessageroleenum-1)]
|
|
|
|
#### Defined in
|
|
|
|
[src/types.ts:216](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L216)
|
|
|
|
[src/types.ts:221](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L221)
|
|
|
|
___
|
|
|
|
### ChatCompletionResponseMessageRoleEnum
|
|
|
|
Ƭ **ChatCompletionResponseMessageRoleEnum**: typeof [`ChatCompletionResponseMessageRoleEnum`](openai.md#chatcompletionresponsemessageroleenum-1)[keyof typeof [`ChatCompletionResponseMessageRoleEnum`](openai.md#chatcompletionresponsemessageroleenum-1)]
|
|
|
|
#### Defined in
|
|
|
|
[src/types.ts:242](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L242)
|
|
|
|
[src/types.ts:247](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L247)
|
|
|
|
___
|
|
|
|
### CreateChatCompletionRequestStop
|
|
|
|
Ƭ **CreateChatCompletionRequestStop**: `string`[] \| `string`
|
|
|
|
**`Export`**
|
|
|
|
#### Defined in
|
|
|
|
[src/types.ts:333](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L333)
|
|
|
|
## Variables
|
|
|
|
### ChatCompletionRequestMessageRoleEnum
|
|
|
|
• `Const` **ChatCompletionRequestMessageRoleEnum**: `Object`
|
|
|
|
#### Type declaration
|
|
|
|
| Name | Type |
|
|
| :------ | :------ |
|
|
| `Assistant` | ``"assistant"`` |
|
|
| `System` | ``"system"`` |
|
|
| `User` | ``"user"`` |
|
|
|
|
#### Defined in
|
|
|
|
[src/types.ts:216](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L216)
|
|
|
|
[src/types.ts:221](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L221)
|
|
|
|
___
|
|
|
|
### ChatCompletionResponseMessageRoleEnum
|
|
|
|
• `Const` **ChatCompletionResponseMessageRoleEnum**: `Object`
|
|
|
|
#### Type declaration
|
|
|
|
| Name | Type |
|
|
| :------ | :------ |
|
|
| `Assistant` | ``"assistant"`` |
|
|
| `System` | ``"system"`` |
|
|
| `User` | ``"user"`` |
|
|
|
|
#### Defined in
|
|
|
|
[src/types.ts:242](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L242)
|
|
|
|
[src/types.ts:247](https://github.com/transitive-bullshit/chatgpt-api/blob/c4ffe53/src/types.ts#L247)
|