ant-design / pro-chat

🤖 Components Library for Quickly Building LLM Chat Interfaces.
https://pro-chat.antdigital.dev
MIT License
667 stars 83 forks source link

🧐[问题]demo中的chatgpt示例,rounte.ts是怎么设置成/api/openai/这个端口的? #269

Closed lonrencn closed 1 month ago

lonrencn commented 2 months ago

🧐 问题描述

在antd pro里,如何把示例中rounte.ts设置成/api/openai/这个端口

💻 示例代码

🚑 其他信息

ONLY-yours commented 1 month ago

request 直接写 /api/openai/,最后发送的是相对路径,注意下就行