File tree Expand file tree Collapse file tree
proprietary/components/chat
prototypes/components/chat Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import { useTranslation } from "react-i18next";
1010import { generateId } from "@app/utils/generateId" ;
1111import { useAllFiles , useFileActions } from "@app/contexts/FileContext" ;
1212import apiClient from "@app/services/apiClient" ;
13- import { buildApiUrl } from "@app/services/buildApiUrl" ;
1413import { getAuthHeaders } from "@app/services/apiClientSetup" ;
1514import { dispatchPaygLimitReached } from "@app/services/usageLimitBridge" ;
1615import { createChildStub } from "@app/contexts/file/fileActions" ;
@@ -520,7 +519,7 @@ export function ChatProvider({ children }: { children: ReactNode }) {
520519 formData . append ( `conversationHistory[${ i } ].content` , message . content ) ;
521520 } ) ;
522521 const response = await fetch (
523- buildApiUrl ( "/api/v1/ai/orchestrate/stream" ) ,
522+ apiClient . getUri ( { url : "/api/v1/ai/orchestrate/stream" } ) ,
524523 {
525524 method : "POST" ,
526525 body : formData ,
Original file line number Diff line number Diff line change 99import { useAllFiles , useFileActions } from "@app/contexts/FileContext" ;
1010import { generateId } from "@app/utils/generateId" ;
1111import apiClient from "@app/services/apiClient" ;
12- import { buildApiUrl } from "@app/services/buildApiUrl" ;
1312import { getAuthHeaders } from "@app/services/apiClientSetup" ;
1413import { createChildStub } from "@app/contexts/file/fileActions" ;
1514import {
@@ -442,7 +441,7 @@ export function ChatProvider({ children }: { children: ReactNode }) {
442441 } ) ;
443442
444443 const response = await fetch (
445- buildApiUrl ( "/api/v1/ai/orchestrate/stream" ) ,
444+ apiClient . getUri ( { url : "/api/v1/ai/orchestrate/stream" } ) ,
446445 {
447446 method : "POST" ,
448447 body : formData ,
You can’t perform that action at this time.
0 commit comments