Go: fix env variables (#18032)

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-08-10 14:37:05 +08:00
committed by GitHub
parent c0582b8e18
commit c0bc146fcb
24 changed files with 774 additions and 95 deletions

View File

@@ -82,7 +82,7 @@ func NewMemoryHandler(memoryService *service.MemoryService) *MemoryHandler {
func (h *MemoryHandler) CreateMemory(c *gin.Context) {
// Check if API timing is enabled
// If RAGFLOW_API_TIMING environment variable is set, request processing time will be logged
timingEnabled := common.GetEnv(common.EnvRAGFlowApiTiming)
timingEnabled := common.GetEnv(common.EnvRAGFlowAPITiming)
var tStart time.Time
if timingEnabled != "" {
tStart = time.Now()