portkey-ai
Advanced tools
Comparing version 0.1.12 to 0.1.13
@@ -8,3 +8,3 @@ "use strict"; | ||
var _a; | ||
const config = this.client.configSlug || { | ||
const config = this.client.config || { | ||
mode: this.client.mode, | ||
@@ -11,0 +11,0 @@ options: this.client.llms |
@@ -8,3 +8,3 @@ "use strict"; | ||
var _a; | ||
const config = this.client.configSlug || { | ||
const config = this.client.config || { | ||
mode: this.client.mode, | ||
@@ -11,0 +11,0 @@ options: this.client.llms |
@@ -9,3 +9,3 @@ import * as Types from "./_types/portkeyConstructs"; | ||
llms?: [Types.LLMOptions] | null; | ||
configSlug?: string | null; | ||
config?: string | null; | ||
} | ||
@@ -17,4 +17,4 @@ export declare class Portkey extends ApiClient { | ||
llms: [Types.LLMOptions] | null; | ||
configSlug: string | null; | ||
constructor({ apiKey, baseURL, mode, llms, configSlug }: ApiClientInterface); | ||
config: string | null; | ||
constructor({ apiKey, baseURL, mode, llms, config }: ApiClientInterface); | ||
protected constructLlms(llms?: [Types.LLMOptions] | null): [Types.LLMOptions] | null; | ||
@@ -21,0 +21,0 @@ completions: API.Completions; |
@@ -35,3 +35,3 @@ "use strict"; | ||
var _b, _c; | ||
var { apiKey = (_b = (0, utils_1.readEnv)('PORTKEY_API_KEY')) !== null && _b !== void 0 ? _b : null, baseURL = (_c = (0, utils_1.readEnv)('PORTKEY_BASE_URL')) !== null && _c !== void 0 ? _c : null, mode, llms, configSlug } = _a; | ||
var { apiKey = (_b = (0, utils_1.readEnv)('PORTKEY_API_KEY')) !== null && _b !== void 0 ? _b : null, baseURL = (_c = (0, utils_1.readEnv)('PORTKEY_BASE_URL')) !== null && _c !== void 0 ? _c : null, mode, llms, config } = _a; | ||
super({ | ||
@@ -50,3 +50,3 @@ apiKey, | ||
this.llms = this.constructLlms(llms || null); | ||
this.configSlug = configSlug || null; | ||
this.config = config || null; | ||
} | ||
@@ -53,0 +53,0 @@ constructLlms(llms) { |
{ | ||
"name": "portkey-ai", | ||
"version": "0.1.12", | ||
"version": "0.1.13", | ||
"description": "Node client library for the Portkey API", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
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
69948