New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

portkey-ai

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

portkey-ai - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

11

dist/index.d.ts

@@ -1,2 +0,2 @@

import { type LLMOptions } from "./_types/portkeyConstructs";
import * as Types from "./_types/portkeyConstructs";
import * as API from "./apis";

@@ -8,3 +8,3 @@ import { ApiClient } from "./baseClient";

mode?: string | null;
llms?: [LLMOptions] | null;
llms?: [Types.LLMOptions] | null;
}

@@ -15,8 +15,11 @@ export declare class Portkey extends ApiClient {

mode: string | null;
llms: [LLMOptions] | null;
llms: [Types.LLMOptions] | null;
constructor({ apiKey, baseURL, mode, llms }: ApiClientInterface);
protected constructLlms(llms?: [LLMOptions] | null): [LLMOptions] | null;
protected constructLlms(llms?: [Types.LLMOptions] | null): [Types.LLMOptions] | null;
completions: API.Completions;
chatCompletions: API.ChatCompletions;
}
export declare namespace Portkey {
export import LLMOptions = Types.LLMOptions;
}
export {};

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

exports.Portkey = void 0;
const portkeyConstructs_1 = require("./_types/portkeyConstructs");
const Types = __importStar(require("./_types/portkeyConstructs"));
const API = __importStar(require("./apis"));

@@ -57,3 +57,3 @@ const baseClient_1 = require("./baseClient");

for (const key in llm) {
if (portkeyConstructs_1.ModelParamsList.includes(key)) {
if (Types.ModelParamsList.includes(key)) {
if (!llm.override_params) {

@@ -71,2 +71,4 @@ llm.override_params = {};

exports.Portkey = Portkey;
(function (Portkey) {
})(Portkey || (exports.Portkey = Portkey = {}));
//# sourceMappingURL=index.js.map
{
"name": "portkey-ai",
"version": "0.1.8",
"description": "Blazing fast ai gateway sdk",
"version": "0.1.9",
"description": "Node client library for the Portkey API",
"types": "dist/index.d.ts",
"main": "dist/index.js",
"repository": "github:Portkey-AI/portkey-node-sdk",
"scripts": {

@@ -13,3 +14,4 @@ "test": "echo \"Error: no test specified\" && exit 1"

],
"author": "portkey-ai",
"keywords": [],
"author": "portkey-ai <support@portkey.ai>",
"license": "MIT",

@@ -16,0 +18,0 @@ "devDependencies": {

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