File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change 1
1
import { collabServiceUri } from "@/lib/api/api-uri" ;
2
2
3
3
export const sendAiMessage = async ( message : string ) => {
4
- console . log ( `{collabServiceUri(window.location.hostname)}/send-ai-message` ) ;
5
- console . log ( message ) ;
6
- const response = await fetch ( `${ collabServiceUri ( window . location . hostname ) } /collab/send-ai-message` , {
7
- method : 'POST' ,
4
+ console . log ( `{collabServiceUri(window.location.hostname)}/send-ai-message` ) ;
5
+ console . log ( message ) ;
6
+ const response = await fetch (
7
+ `${ collabServiceUri ( window . location . hostname ) } /collab/send-ai-message` ,
8
+ {
9
+ method : "POST" ,
8
10
headers : {
9
- ' Content-Type' : ' application/json' ,
11
+ " Content-Type" : " application/json" ,
10
12
} ,
11
- body : JSON . stringify ( { message : message } ) ,
12
- } ) ;
13
- return response ;
14
- }
13
+ body : JSON . stringify ( { message : message } ) ,
14
+ }
15
+ ) ;
16
+ return response ;
17
+ } ;
You can’t perform that action at this time.
0 commit comments