refactor: 重构 Gemini 适配器以支持图片编辑和生成 feat(relay): 添加图片编辑模式支持 feat(controller): 实现 UsageAPIURL 用于获取真实 token 用量 feat(web): 在渠道测试中添加模型选择功能 perf(token): 优化多模态 token 计算逻辑 fix(web): 修复日志分页组件显示问题 docs: 更新渠道配置中的 UsageAPIURL 说明 style: 清理调试日志和注释 feat(gemini): 支持 Imagen 3+ 图片生成模型 feat(openai): 添加生成 ID 捕获和元数据获取功能
18 lines
272 B
Go
18 lines
272 B
Go
package relaymode
|
|
|
|
const (
|
|
Unknown = iota
|
|
ChatCompletions
|
|
Completions
|
|
Embeddings
|
|
Moderations
|
|
ImagesGenerations
|
|
ImagesEdits
|
|
Edits
|
|
AudioSpeech
|
|
AudioTranscription
|
|
AudioTranslation
|
|
// Proxy is a special relay mode for proxying requests to custom upstream
|
|
Proxy
|
|
)
|