MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / claudeRequest

Function claudeRequest

controller/relay.go:235–240  ·  view source on GitHub ↗
(c *gin.Context, channel *model.Channel)

Source from the content-addressed store, hash-verified

233}
234
235func 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
242func addUsedChannel(c *gin.Context, channelId int) {
243 useChannel := c.GetStringSlice("use_channel")

Callers 1

RelayClaudeFunction · 0.85

Calls 3

GetRequestBodyFunction · 0.92
ClaudeHelperFunction · 0.92
addUsedChannelFunction · 0.85

Tested by

no test coverage detected