generaltranslation 1.0.18 → 1.0.19

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.
Files changed (2) hide show
  1. package/models/models.js +1 -0
  2. package/package.json +1 -1
package/models/models.js CHANGED
@@ -3,6 +3,7 @@
3
3
  // Get all info about a given model
4
4
  // Returns an object or null if invalid
5
5
  const getModelInfo = async model => {
6
+ if (!model) return null;
6
7
  model = model?.toLowerCase();
7
8
  try {
8
9
  const result = await fetch(`https://gtx.dev/model/${model}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generaltranslation",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "A language toolkit for AI developers",
5
5
  "main": "index.js",
6
6
  "scripts": {