File tree Expand file tree Collapse file tree 1 file changed +16
-15
lines changed Expand file tree Collapse file tree 1 file changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -232,21 +232,22 @@ onBeforeUnmount(() => {
232
232
if (props .editor ) props .editor .off (' selectionUpdate' , updateAIBtn );
233
233
});
234
234
235
- async function loadFreeModels() {
236
- try {
237
- const res = await fetch (' /api/free-models' );
238
- if (res .ok ) {
239
- const json = await res .json ();
240
- freeModels .value = json .models ;
241
- selectedModel .value = freeModels .value [0 ]?.slug || ' ' ;
242
- } else {
243
- console .error (' Failed to fetch models' , res .statusText );
244
- }
245
- } catch (e ) {
246
- console .error (' Error loading models' , e );
247
- }
248
- }
249
- onMounted (loadFreeModels );
235
+ // async function loadFreeModels() {
236
+ // try {
237
+ // const res = await fetch('/api/free-models');
238
+ // if (res.ok) {
239
+ // const json = await res.json();
240
+ // freeModels.value = json.models;
241
+ // selectedModel.value = freeModels.value[0]?.slug || '';
242
+ // } else {
243
+ // console.error('Failed to fetch models', res.statusText);
244
+ // }
245
+ // } catch (e) {
246
+ // console.error('Error loading models', e);
247
+ // }
248
+ // }
249
+
250
+ // onMounted(loadFreeModels);
250
251
251
252
function openAIBar() {
252
253
showAIBar .value = true ;
You can’t perform that action at this time.
0 commit comments