Socket
Socket
Sign inDemoInstall

genkitx-github

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

genkitx-github - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

lib/cjs/github_embedders.js

3

lib/cjs/github_llms.js

@@ -596,3 +596,4 @@ "use strict";

for (const key in body.body) {
if (!body.body[key] || (Array.isArray(body.body[key]) && !body.body[key].length))
if (!body.body[key] ||
(Array.isArray(body.body[key]) && !body.body[key].length))
delete body.body[key];

@@ -599,0 +600,0 @@ }

@@ -15,3 +15,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.github = exports.microsoftPhi35Mini128kInstruct = exports.microsoftPhi3Medium4kInstruct = exports.microsoftPhi3Small128kInstruct = exports.microsoftPhi3Small8kInstruct = exports.microsoftPhi3Mini128kInstruct = exports.microsoftPhi3Mini4kInstruct = exports.ai21Jamba15Large = exports.ai21Jamba15Mini = exports.mistralNemo = exports.mistralLarge2407 = exports.mistralLarge = exports.mistralSmall = exports.cohereCommandR = exports.cohereCommandRPlus = exports.metaLlama318bInstruct = exports.metaLlama3170bInstruct = exports.metaLlama31405bInstruct = exports.metaLlama38bInstruct = exports.metaLlama370bInstruct = exports.openAIGpt4oMini = exports.openAIGpt4o = void 0;
exports.github = exports.cohereEmbedv3Multilingual = exports.cohereEmbedv3English = exports.openAITextEmbedding3Large = exports.openAITextEmbedding3Small = exports.microsoftPhi35Mini128kInstruct = exports.microsoftPhi3Medium4kInstruct = exports.microsoftPhi3Small128kInstruct = exports.microsoftPhi3Small8kInstruct = exports.microsoftPhi3Mini128kInstruct = exports.microsoftPhi3Mini4kInstruct = exports.ai21Jamba15Large = exports.ai21Jamba15Mini = exports.mistralNemo = exports.mistralLarge2407 = exports.mistralLarge = exports.mistralSmall = exports.cohereCommandR = exports.cohereCommandRPlus = exports.metaLlama318bInstruct = exports.metaLlama3170bInstruct = exports.metaLlama31405bInstruct = exports.metaLlama38bInstruct = exports.metaLlama370bInstruct = exports.openAIGpt4oMini = exports.openAIGpt4o = void 0;
const core_1 = require("@genkit-ai/core");

@@ -42,2 +42,7 @@ const ai_inference_1 = __importDefault(require("@azure-rest/ai-inference"));

Object.defineProperty(exports, "microsoftPhi35Mini128kInstruct", { enumerable: true, get: function () { return github_llms_js_1.microsoftPhi35Mini128kInstruct; } });
const github_embedders_js_1 = require("./github_embedders.js");
Object.defineProperty(exports, "cohereEmbedv3English", { enumerable: true, get: function () { return github_embedders_js_1.cohereEmbedv3English; } });
Object.defineProperty(exports, "cohereEmbedv3Multilingual", { enumerable: true, get: function () { return github_embedders_js_1.cohereEmbedv3Multilingual; } });
Object.defineProperty(exports, "openAITextEmbedding3Large", { enumerable: true, get: function () { return github_embedders_js_1.openAITextEmbedding3Large; } });
Object.defineProperty(exports, "openAITextEmbedding3Small", { enumerable: true, get: function () { return github_embedders_js_1.openAITextEmbedding3Small; } });
exports.github = (0, core_1.genkitPlugin)("github", (options) => __awaiter(void 0, void 0, void 0, function* () {

@@ -57,3 +62,3 @@ const token = (options === null || options === void 0 ? void 0 : options.githubToken) || process.env.GITHUB_TOKEN;

],
embedders: [],
embedders: Object.keys(github_embedders_js_1.SUPPORTED_EMBEDDING_MODELS).map((name) => (0, github_embedders_js_1.githubEmbedder)(name, options)),
};

@@ -60,0 +65,0 @@ }));

import { Plugin } from "@genkit-ai/core";
import { openAIGpt4o, openAIGpt4oMini, metaLlama370bInstruct, metaLlama38bInstruct, metaLlama31405bInstruct, metaLlama3170bInstruct, metaLlama318bInstruct, cohereCommandR, cohereCommandRPlus, mistralSmall, mistralLarge, mistralLarge2407, mistralNemo, ai21Jamba15Mini, ai21Jamba15Large, microsoftPhi3Mini4kInstruct, microsoftPhi3Mini128kInstruct, microsoftPhi3Small8kInstruct, microsoftPhi3Small128kInstruct, microsoftPhi3Medium4kInstruct, microsoftPhi35Mini128kInstruct } from "./github_llms.js";
import { cohereEmbedv3English, cohereEmbedv3Multilingual, openAITextEmbedding3Large, openAITextEmbedding3Small } from "./github_embedders.js";
export { openAIGpt4o, openAIGpt4oMini, metaLlama370bInstruct, metaLlama38bInstruct, metaLlama31405bInstruct, metaLlama3170bInstruct, metaLlama318bInstruct, cohereCommandRPlus, cohereCommandR, mistralSmall, mistralLarge, mistralLarge2407, mistralNemo, ai21Jamba15Mini, ai21Jamba15Large, microsoftPhi3Mini4kInstruct, microsoftPhi3Mini128kInstruct, microsoftPhi3Small8kInstruct, microsoftPhi3Small128kInstruct, microsoftPhi3Medium4kInstruct, microsoftPhi35Mini128kInstruct, };
export { openAITextEmbedding3Small, openAITextEmbedding3Large, cohereEmbedv3English, cohereEmbedv3Multilingual, };
export interface PluginOptions {

@@ -5,0 +7,0 @@ githubToken?: string;

@@ -15,3 +15,3 @@ {

],
"version": "1.1.0",
"version": "1.2.0",
"type": "module",

@@ -18,0 +18,0 @@ "main": "lib/cjs/index.js",

@@ -142,7 +142,6 @@ ![Firebase Genkit + Github Models](https://github.com/xavidop/genkitx-github/blob/main/assets/genkit-github.png?raw=true)

This plugins supports all currently **Chat/Completition** available models from Github Models.
This plugin supports all currently available **Chat/Completion** and **Embeddings** models from Github Models.
Still in progress:
1. Embedding models
2. Support for image input/output models
1. Support for image input/output models

@@ -149,0 +148,0 @@ ## API Reference

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc