Skip to content

在lobechat的日志输出中看到apikey #8456

@lisongmin

Description

@lisongmin

📦 部署环境

Docker

📦 部署模式

服务端模式(lobe-chat-database 镜像)

📌 软件版本

1.99.2

💻 系统环境

Ubuntu, Other Linux

🌐 浏览器

Firefox

🐛 问题描述

通过web配置了openrouter。查看lobechat的日志输出时,发现以下信息:

app-1  | Provider runtime map found for provider: openrouter
app-1  | (node:28) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
app-1  | (Use `node --trace-deprecation ...` to show where the warning was created)
app-1  | Initializing runtime with provider: openrouter and params: {
app-1  |   apiKey: 'sk-or-v1-xxxxxx'
app-1  | }

其中包含了敏感信息apikey

📷 复现步骤

No response

🚦 期望结果

日志中不会出现apikey

📝 补充信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    unconfirm未被维护者确认的问题

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions