document/content/docs/self-host/upgrading/4-14/4147.en.mdx
The logging system has been updated, including log output, log collection, and log analysis.
# Remove these environment variables
LOG_LEVEL=
STORE_LOG_LEVEL=
SIGNOZ_BASE_URL=
SIGNOZ_SERVICE_NAME=
SIGNOZ_STORE_LEVEL=
# Add the following 6 variables (same variables for fastgpt, fastgpt-pro, fastgpt-plugin, and fastgpt-mcp-server)
LOG_ENABLE_CONSOLE=true # Enable console output
LOG_CONSOLE_LEVEL=debug # Minimum log level for console output
LOG_ENABLE_OTEL=false # Enable OTEL log collection
LOG_OTEL_LEVEL=info # Minimum log level for OTEL collection
LOG_OTEL_SERVICE_NAME=fastgpt-client # Service name passed to the OTLP collector
LOG_OTEL_URL=http://localhost:4318/v1/logs # Your OTLP collector URL. Do not omit /v1/logs
Go to the Plugin Marketplace and update the following system tools (skip this step if you already upgraded to 4.14.6). You can also directly download the zip package and install it.
From any terminal, send an HTTP request. Replace {{rootkey}} with the rootkey from your environment variables, and {{host}} with your FastGPT domain.
curl --location --request POST 'https://{{host}}/api/admin/initv4147' \
--header 'rootkey: {{rootkey}}' \
--header 'Content-Type: application/json'
In the new version's chat records, the type field has been removed from the value. /api/core/chat/getPaginationRecords has temporary backward compatibility, but users of this API should update their value parsing logic as soon as possible -- simply check whether fields like text, tools, etc. exist.
LLM_REQUEST_TRACKING_RETENTION_HOURS).$ref syntax in schemas."{}" to prevent errors from providers that don't support empty strings.