portkey-ai
Advanced tools
Comparing version 0.1.8 to 0.1.9
@@ -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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
69841
1060