MCPcopy Index your code
hub / github.com/apache/answer / redirectRequestToAI

Method redirectRequestToAI

internal/controller/ai_controller.go:271–275  ·  view source on GitHub ↗
(ctx *gin.Context, w http.ResponseWriter, id string, conversationCtx *ConversationContext)

Source from the content-addressed store, hash-verified

269}
270
271func (c *AIController) redirectRequestToAI(ctx *gin.Context, w http.ResponseWriter, id string, conversationCtx *ConversationContext) {
272 client := c.createOpenAIClient()
273
274 c.handleAIConversation(ctx, w, id, client, conversationCtx)
275}
276
277// createOpenAIClient
278func (c *AIController) createOpenAIClient() *openai.Client {

Callers 1

ChatCompletionsMethod · 0.95

Calls 2

createOpenAIClientMethod · 0.95
handleAIConversationMethod · 0.95

Tested by

no test coverage detected