* feat: 添加 OPENAI_API_BASE_URL 可选参数[#249] * fix: 生成的代码块不能复制的问题[#251][#260] * perf: 限制高分屏上的宽度[#257] * perf: 文字按单词换行[#215][#225] * perf: highlight.js 新语法警告 * fix: 移动端输入框不会被键盘弹起[#256] * chore: 更新文档 * chore: version 2.9.2
25 lines
523 B
TypeScript
25 lines
523 B
TypeScript
import type { FetchFn } from 'chatgpt'
|
|
|
|
export interface ChatContext {
|
|
conversationId?: string
|
|
parentMessageId?: string
|
|
}
|
|
|
|
export interface ChatGPTUnofficialProxyAPIOptions {
|
|
accessToken: string
|
|
apiReverseProxyUrl?: string
|
|
model?: string
|
|
debug?: boolean
|
|
headers?: Record<string, string>
|
|
fetch?: FetchFn
|
|
}
|
|
|
|
export interface ModelConfig {
|
|
apiModel?: ApiModel
|
|
reverseProxy?: string
|
|
timeoutMs?: number
|
|
socksProxy?: string
|
|
}
|
|
|
|
export type ApiModel = 'ChatGPTAPI' | 'ChatGPTUnofficialProxyAPI' | undefined
|