(date: Date)
| 35 | const hours = String(date.getHours()).padStart(2, "0"); |
| 36 | const minutes = String(date.getMinutes()).padStart(2, "0"); |
| 37 | return `${year}-${month}-${day} ${hours}:${minutes}`; |
| 38 | } |
| 39 | |
| 40 | type ProviderProtocol = "auto" | "chat" | "responses" | "gemini" | "anthropic"; |
| 41 | |
| 42 | type CustomProvider = { |
| 43 | name: string; |
| 44 | base_url: string; |
| 45 | api_key: string; |
| 46 | model: string; |
| 47 | // 旧配置中的 openai 会在读取时自动迁移为 auto。 |
no outgoing calls
no test coverage detected