Skip to content

[Bug]: 使用openrouter接入openai时对话报错 #2201

@jiejee

Description

@jiejee

Installation Method | 安装方法与平台

OneKeyInstall (一键安装脚本-windows)

Version | 版本

Latest | 最新版

OS | 操作系统

Windows

Describe the bug | 简述

按第三方api修改配置:
API_KEY = "sk-or-v1-XXXXX"
CUSTOM_API_KEY_PATTERN = "sk-or-v1-XXXXX"
API_URL_REDIRECT {"https://api.openai.com/v1/chat/completions":"https://openrouter.ai/api/v1/chat/completions"}
网络配置已代理

Screen Shot | 有帮助的截图

Image

Terminal Traceback & Material to Help Reproduce Bugs | 终端traceback(如有) + 帮助我们复现的测试材料样本(如有)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions