forked from Chanzhaoyu/chatgpt-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: 主题模式图标不一致的问题[Chanzhaoyu#125] * fix: 修复样式问题[Chanzhaoyu#123][Chanzhaoyu#126] * perf: 优化代码和添加类型
- Loading branch information
1 parent
628187f
commit 1406292
Showing
9 changed files
with
66 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import type { FetchFn, openai } from 'chatgpt' | ||
|
||
export interface ChatContext { | ||
conversationId?: string | ||
parentMessageId?: string | ||
} | ||
|
||
export interface ChatGPTAPIOptions { | ||
apiKey: string | ||
debug?: boolean | ||
completionParams?: Partial<openai.CompletionParams> | ||
} | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters