@digipair/skill-openai 0.8.17 → 0.8.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.
- package/index.cjs.js +2 -1
- package/index.esm.js +2 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -54666,9 +54666,10 @@ let OpenAIService = class OpenAIService {
|
|
|
54666
54666
|
}
|
|
54667
54667
|
async embeddings(params, _pinsSettingsList, context) {
|
|
54668
54668
|
var _context_privates_OPENAI_SERVER, _context_privates_OPENAI_API_KEY;
|
|
54669
|
-
const { modelName = 'text-embedding-3-
|
|
54669
|
+
const { modelName = 'text-embedding-3-small', dimensions = 1024, baseURL = (_context_privates_OPENAI_SERVER = context.privates.OPENAI_SERVER) != null ? _context_privates_OPENAI_SERVER : process.env['OPENAI_SERVER'], apiKey = (_context_privates_OPENAI_API_KEY = context.privates.OPENAI_API_KEY) != null ? _context_privates_OPENAI_API_KEY : process.env['OPENAI_API_KEY'] } = params;
|
|
54670
54670
|
const modelInstance = new OpenAIEmbeddings({
|
|
54671
54671
|
modelName,
|
|
54672
|
+
dimensions,
|
|
54672
54673
|
configuration: {
|
|
54673
54674
|
baseURL,
|
|
54674
54675
|
apiKey
|
package/index.esm.js
CHANGED
|
@@ -54662,9 +54662,10 @@ let OpenAIService = class OpenAIService {
|
|
|
54662
54662
|
}
|
|
54663
54663
|
async embeddings(params, _pinsSettingsList, context) {
|
|
54664
54664
|
var _context_privates_OPENAI_SERVER, _context_privates_OPENAI_API_KEY;
|
|
54665
|
-
const { modelName = 'text-embedding-3-
|
|
54665
|
+
const { modelName = 'text-embedding-3-small', dimensions = 1024, baseURL = (_context_privates_OPENAI_SERVER = context.privates.OPENAI_SERVER) != null ? _context_privates_OPENAI_SERVER : process.env['OPENAI_SERVER'], apiKey = (_context_privates_OPENAI_API_KEY = context.privates.OPENAI_API_KEY) != null ? _context_privates_OPENAI_API_KEY : process.env['OPENAI_API_KEY'] } = params;
|
|
54666
54666
|
const modelInstance = new OpenAIEmbeddings({
|
|
54667
54667
|
modelName,
|
|
54668
|
+
dimensions,
|
|
54668
54669
|
configuration: {
|
|
54669
54670
|
baseURL,
|
|
54670
54671
|
apiKey
|