(c *gin.Context, channel *model.Channel)
| 233 | } |
| 234 | |
| 235 | func claudeRequest(c *gin.Context, channel *model.Channel) *types.NewAPIError { |
| 236 | addUsedChannel(c, channel.Id) |
| 237 | requestBody, _ := common.GetRequestBody(c) |
| 238 | c.Request.Body = io.NopCloser(bytes.NewBuffer(requestBody)) |
| 239 | return relay.ClaudeHelper(c) |
| 240 | } |
| 241 | |
| 242 | func addUsedChannel(c *gin.Context, channelId int) { |
| 243 | useChannel := c.GetStringSlice("use_channel") |
no test coverage detected