generaltranslation 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/models/models.js +2 -2
- package/package.json +1 -1
package/models/models.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Returns an array of model names
|
|
5
5
|
const getModelList = async () => {
|
|
6
6
|
try {
|
|
7
|
-
const result = await fetch(`https://
|
|
7
|
+
const result = await fetch(`https://models.gtx.dev/models`);
|
|
8
8
|
const models = await result.json();
|
|
9
9
|
return models;
|
|
10
10
|
} catch (error) {
|
|
@@ -19,7 +19,7 @@ const _getModelInfo = async model => {
|
|
|
19
19
|
if (!model) return null;
|
|
20
20
|
model = model?.toLowerCase();
|
|
21
21
|
try {
|
|
22
|
-
const result = await fetch(`https://
|
|
22
|
+
const result = await fetch(`https://models.gtx.dev/model/${model}`);
|
|
23
23
|
const modelInfo = await result.json();
|
|
24
24
|
return modelInfo;
|
|
25
25
|
} catch (error) {
|