@theia/ai-huggingface 1.58.2 → 1.59.0-next.62

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.
@@ -1 +1 @@
1
- {"version":3,"file":"huggingface-preferences.d.ts","sourceRoot":"","sources":["../../src/browser/huggingface-preferences.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6DAA6D,CAAC;AAG/F,eAAO,MAAM,YAAY,mCAAmC,CAAC;AAC7D,eAAO,MAAM,WAAW,mCAAmC,CAAC;AAE5D,eAAO,MAAM,4BAA4B,EAAE,gBAmB1C,CAAC"}
1
+ {"version":3,"file":"huggingface-preferences.d.ts","sourceRoot":"","sources":["../../src/browser/huggingface-preferences.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6DAA6D,CAAC;AAI/F,eAAO,MAAM,YAAY,mCAAmC,CAAC;AAC7D,eAAO,MAAM,WAAW,mCAAmC,CAAC;AAE5D,eAAO,MAAM,4BAA4B,EAAE,gBAoB1C,CAAC"}
@@ -17,6 +17,7 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.HuggingFacePreferencesSchema = exports.MODELS_PREF = exports.API_KEY_PREF = void 0;
19
19
  const ai_core_preferences_1 = require("@theia/ai-core/lib/browser/ai-core-preferences");
20
+ const core_1 = require("@theia/core");
20
21
  exports.API_KEY_PREF = 'ai-features.huggingFace.apiKey';
21
22
  exports.MODELS_PREF = 'ai-features.huggingFace.models';
22
23
  exports.HuggingFacePreferencesSchema = {
@@ -24,13 +25,13 @@ exports.HuggingFacePreferencesSchema = {
24
25
  properties: {
25
26
  [exports.API_KEY_PREF]: {
26
27
  type: 'string',
27
- markdownDescription: 'Enter an API Key for your Hugging Face Account. **Please note:** By using this preference the Hugging Face API key will be stored in clear text\
28
- on the machine running Theia. Use the environment variable `HUGGINGFACE_API_KEY` to set the key securely.',
28
+ markdownDescription: core_1.nls.localize('theia/ai/huggingFace/apiKey/mdDescription', 'Enter an API Key for your Hugging Face Account. **Please note:** By using this preference the Hugging Face API key will be stored in clear text\
29
+ on the machine running Theia. Use the environment variable `HUGGINGFACE_API_KEY` to set the key securely.'),
29
30
  title: ai_core_preferences_1.AI_CORE_PREFERENCES_TITLE,
30
31
  },
31
32
  [exports.MODELS_PREF]: {
32
33
  type: 'array',
33
- description: 'Hugging Face models to use',
34
+ description: core_1.nls.localize('theia/ai/huggingFace/models/description', 'Hugging Face models to use'),
34
35
  title: ai_core_preferences_1.AI_CORE_PREFERENCES_TITLE,
35
36
  default: ['bigcode/starcoder'],
36
37
  items: {
@@ -1 +1 @@
1
- {"version":3,"file":"huggingface-preferences.js","sourceRoot":"","sources":["../../src/browser/huggingface-preferences.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAGhF,wFAA2F;AAE9E,QAAA,YAAY,GAAG,gCAAgC,CAAC;AAChD,QAAA,WAAW,GAAG,gCAAgC,CAAC;AAE/C,QAAA,4BAA4B,GAAqB;IAC1D,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,CAAC,oBAAY,CAAC,EAAE;YACZ,IAAI,EAAE,QAAQ;YACd,mBAAmB,EAAE;sHACqF;YAC1G,KAAK,EAAE,+CAAyB;SACnC;QACD,CAAC,mBAAW,CAAC,EAAE;YACX,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,4BAA4B;YACzC,KAAK,EAAE,+CAAyB;YAChC,OAAO,EAAE,CAAC,mBAAmB,CAAC;YAC9B,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;SACJ;KACJ;CACJ,CAAC"}
1
+ {"version":3,"file":"huggingface-preferences.js","sourceRoot":"","sources":["../../src/browser/huggingface-preferences.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAGhF,wFAA2F;AAC3F,sCAAkC;AAErB,QAAA,YAAY,GAAG,gCAAgC,CAAC;AAChD,QAAA,WAAW,GAAG,gCAAgC,CAAC;AAE/C,QAAA,4BAA4B,GAAqB;IAC1D,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,CAAC,oBAAY,CAAC,EAAE;YACZ,IAAI,EAAE,QAAQ;YACd,mBAAmB,EAAE,UAAG,CAAC,QAAQ,CAAC,2CAA2C,EACzE;sHACsG,CAAC;YAC3G,KAAK,EAAE,+CAAyB;SACnC;QACD,CAAC,mBAAW,CAAC,EAAE;YACX,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,UAAG,CAAC,QAAQ,CAAC,yCAAyC,EAAE,4BAA4B,CAAC;YAClG,KAAK,EAAE,+CAAyB;YAChC,OAAO,EAAE,CAAC,mBAAmB,CAAC;YAC9B,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;SACJ;KACJ;CACJ,CAAC"}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@theia/ai-huggingface",
3
- "version": "1.58.2",
3
+ "version": "1.59.0-next.62+9e43c93ad",
4
4
  "description": "Theia - Hugging Face Integration",
5
5
  "dependencies": {
6
6
  "@huggingface/inference": "^2.0.0",
7
- "@theia/ai-core": "1.58.2",
8
- "@theia/core": "1.58.2"
7
+ "@theia/ai-core": "1.59.0-next.62+9e43c93ad",
8
+ "@theia/core": "1.59.0-next.62+9e43c93ad"
9
9
  },
10
10
  "publishConfig": {
11
11
  "access": "public"
@@ -41,10 +41,10 @@
41
41
  "watch": "theiaext watch"
42
42
  },
43
43
  "devDependencies": {
44
- "@theia/ext-scripts": "1.58.2"
44
+ "@theia/ext-scripts": "1.58.0"
45
45
  },
46
46
  "nyc": {
47
47
  "extends": "../../configs/nyc.json"
48
48
  },
49
- "gitHead": "4af367c0a63547aff14a27c98d929ee77a22aafe"
49
+ "gitHead": "9e43c93ad61ea977db3974207bac5d7c1fd3ccd6"
50
50
  }
@@ -16,6 +16,7 @@
16
16
 
17
17
  import { PreferenceSchema } from '@theia/core/lib/browser/preferences/preference-contribution';
18
18
  import { AI_CORE_PREFERENCES_TITLE } from '@theia/ai-core/lib/browser/ai-core-preferences';
19
+ import { nls } from '@theia/core';
19
20
 
20
21
  export const API_KEY_PREF = 'ai-features.huggingFace.apiKey';
21
22
  export const MODELS_PREF = 'ai-features.huggingFace.models';
@@ -25,13 +26,14 @@ export const HuggingFacePreferencesSchema: PreferenceSchema = {
25
26
  properties: {
26
27
  [API_KEY_PREF]: {
27
28
  type: 'string',
28
- markdownDescription: 'Enter an API Key for your Hugging Face Account. **Please note:** By using this preference the Hugging Face API key will be stored in clear text\
29
- on the machine running Theia. Use the environment variable `HUGGINGFACE_API_KEY` to set the key securely.',
29
+ markdownDescription: nls.localize('theia/ai/huggingFace/apiKey/mdDescription',
30
+ 'Enter an API Key for your Hugging Face Account. **Please note:** By using this preference the Hugging Face API key will be stored in clear text\
31
+ on the machine running Theia. Use the environment variable `HUGGINGFACE_API_KEY` to set the key securely.'),
30
32
  title: AI_CORE_PREFERENCES_TITLE,
31
33
  },
32
34
  [MODELS_PREF]: {
33
35
  type: 'array',
34
- description: 'Hugging Face models to use',
36
+ description: nls.localize('theia/ai/huggingFace/models/description', 'Hugging Face models to use'),
35
37
  title: AI_CORE_PREFERENCES_TITLE,
36
38
  default: ['bigcode/starcoder'],
37
39
  items: {