@@ -9,7 +9,6 @@ import { TaxonomyType } from '../models';
99import * as l10n from '@vscode/l10n' ;
1010import { LocalizationKey } from '../localization' ;
1111
12- const AI_URL = WEBSITE_LINKS . api . ai ;
1312// const AI_URL = 'http://localhost:3000/api/ai';
1413
1514export class SponsorAi {
@@ -28,7 +27,7 @@ export class SponsorAi {
2827 } , 10000 ) ;
2928 const signal = controller . signal ;
3029
31- const response = await fetch ( `${ AI_URL } /title` , {
30+ const response = await fetch ( `${ WEBSITE_LINKS . api . root } /ai /title` , {
3231 method : 'POST' ,
3332 headers : {
3433 'Content-Type' : 'application/json' ,
@@ -66,7 +65,7 @@ export class SponsorAi {
6665 articleContent = articleContent . substring ( 0 , 2000 ) ;
6766 }
6867
69- const response = await fetch ( `${ AI_URL } /description` , {
68+ const response = await fetch ( `${ WEBSITE_LINKS . api . root } /ai /description` , {
7069 method : 'POST' ,
7170 headers : {
7271 'Content-Type' : 'application/json' ,
@@ -129,7 +128,7 @@ export class SponsorAi {
129128 taxonomy : optionsString
130129 } ) ;
131130
132- const response = await fetch ( `${ AI_URL } /taxonomy` , {
131+ const response = await fetch ( `${ WEBSITE_LINKS . api . root } /ai /taxonomy` , {
133132 method : 'POST' ,
134133 headers : {
135134 'Content-Type' : 'application/json' ,
0 commit comments