[]
Ƭ AIRequestCallback: (config: IAIConfig) => Promise<any>
▸ (config): Promise<any>
| Name | Type |
|---|---|
config |
IAIConfig |
Promise<any>
Ƭ IAIConfig: Object
property {{ role: string; content: string }[]} [messages]
property [temperature]
property [max_tokens]
property [stream]
▪ [key: string]: any
| Name | Type |
|---|---|
max_tokens? |
number |
messages |
{ content: string ; role: string }[] |
stream? |
boolean |
temperature? |
number |
Ƭ IAIEnvironment: Object
property model
property key
property basePath
| Name | Type | Description |
|---|---|---|
basePath |
string |
接收 JSON 请求体的 HTTP 端点,例如服务器路由或兼容 OpenAI 的 API URL。 |
key |
string |
用于 Authorization: Bearer 请求头中的 API 密钥。 |
model |
string |
组的所有者。 |