mirror of
https://git.mirrors.martin98.com/https://github.com/bytedance/deer-flow
synced 2025-08-18 15:35:54 +08:00
fix: use ??
instead
This commit is contained in:
parent
a4ccdfce22
commit
fee0716895
@ -12,9 +12,8 @@ export async function POST(request: NextRequest) {
|
|||||||
async start(controller) {
|
async start(controller) {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
(env.NEXT_PUBLIC_API_URL
|
(env.NEXT_PUBLIC_API_URL ?? "http://localhost:8000/api") +
|
||||||
? env.NEXT_PUBLIC_API_URL
|
"/chat/stream",
|
||||||
: "http://localhost:8000/api") + "/chat/stream",
|
|
||||||
{
|
{
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user