(ctx *gin.Context, w http.ResponseWriter, id string, conversationCtx *ConversationContext)
| 269 | } |
| 270 | |
| 271 | func (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 |
| 278 | func (c *AIController) createOpenAIClient() *openai.Client { |
no test coverage detected