RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
fix letter case issue (#20878)
Jin Hai0efef88524b7
diff --git a/internal/entity/models/cohere.go b/internal/entity/models/cohere.goindex 88497eb863..b5d47adceb 100644--- a/internal/entity/models/cohere.go+++ b/internal/entity/models/cohere.go@@ -181,8 +181,8 @@ func (c *CoHereModel) ChatWithMessages(ctx context.Context, modelName string, mereturn nil, fmt.Errorf("failed to create request: %w", err)}- req.Header.Set("content-Type", "application/json")- req.Header.Set("accept", "application/json")+ req.Header.Set("Content-Type", "application/json")+ req.Header.Set("Accept", "application/json")req.Header.Set("Authorization", fmt.Sprintf("bearer %s", strings.TrimSpace(*apiConfig.ApiKey)))resp, err := c.baseModel.httpClient.Do(req)@@ -277,8 +277,8 @@ func (c *CoHereModel) ChatStreamlyWithSender(ctx context.Context, modelName strireturn fmt.Errorf("failed to create request: %w", err)}- req.Header.Set("content-type", "application/json")- req.Header.Set("accept", "application/json")+ req.Header.Set("Content-Type", "application/json")+ req.Header.Set("Accept", "application/json")req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", strings.TrimSpace(*apiConfig.ApiKey)))resp, err := c.baseModel.httpClient.Do(req)@@ -705,7 +705,7 @@ func (c *CoHereModel) ListModels(ctx context.Context, apiConfig *APIConfig) ([]Lreturn nil, fmt.Errorf("failed to create request: %w", err)}- req.Header.Set("accept", "application/json")+ req.Header.Set("Accept", "application/json")req.Header.Set("Authorization", fmt.Sprintf("bearer %s", strings.TrimSpace(*apiConfig.ApiKey)))resp, err := c.baseModel.httpClient.Do(req)