(format string, v ...interface{})
| 128 | } |
| 129 | |
| 130 | func logError(format string, v ...interface{}) { |
| 131 | logMutex.Lock() |
| 132 | logger.Printf("[ERROR] "+format, v...) |
| 133 | logMutex.Unlock() |
| 134 | |
| 135 | // 错误计数 |
| 136 | atomic.AddInt64(&errorCounter, 1) |
| 137 | } |
| 138 | |
| 139 | // OpenAI/DeepSeek 消息格式 |
| 140 | type APIMessage struct { |
no outgoing calls
no test coverage detected