diff --git a/modules/ai/client.go b/modules/ai/client.go index 6df90dfc16..be751a6a15 100644 --- a/modules/ai/client.go +++ b/modules/ai/client.go @@ -51,7 +51,7 @@ func IsEnabled() bool { } // doRequest performs an HTTP request to the AI service -func (c *Client) doRequest(ctx context.Context, method, endpoint string, body any, result any) error { +func (c *Client) doRequest(ctx context.Context, method, endpoint string, body, result any) error { var reqBody io.Reader if body != nil { jsonBody, err := json.Marshal(body) diff --git a/routers/api/v1/repo/ai.go b/routers/api/v1/repo/ai.go index e097bfddfb..4a1d740014 100644 --- a/routers/api/v1/repo/ai.go +++ b/routers/api/v1/repo/ai.go @@ -225,7 +225,7 @@ type ExplainCodeRequest struct { // AIExplainCode explains code using AI // -//nolint:dupl +//nolint:dupl // similar structure to AIGenerateDocumentation is intentional for API consistency func AIExplainCode(ctx *context.APIContext) { // swagger:operation POST /repos/{owner}/{repo}/ai/explain repository aiExplainCode // --- @@ -301,7 +301,7 @@ type GenerateDocRequest struct { // AIGenerateDocumentation generates documentation using AI // -//nolint:dupl +//nolint:dupl // similar structure to AIExplainCode is intentional for API consistency func AIGenerateDocumentation(ctx *context.APIContext) { // swagger:operation POST /repos/{owner}/{repo}/ai/generate-docs repository aiGenerateDocumentation // ---