portkey-ai
Advanced tools
Comparing version 0.1.11 to 0.1.12
import { ModelParams } from "../_types/portkeyConstructs"; | ||
import { Stream } from "../streaming"; | ||
import { ApiResource } from "../apiResource"; | ||
import { APIPromise, RequestOptions } from "../baseClient"; | ||
import { Stream } from "../streaming"; | ||
export declare class ChatCompletions extends ApiResource { | ||
@@ -6,0 +6,0 @@ create(_body: ChatCompletionsBodyNonStreaming, opts?: RequestOptions): APIPromise<ChatCompletion>; |
@@ -8,3 +8,3 @@ "use strict"; | ||
var _a; | ||
const config = { | ||
const config = this.client.configSlug || { | ||
mode: this.client.mode, | ||
@@ -11,0 +11,0 @@ options: this.client.llms |
@@ -8,3 +8,3 @@ "use strict"; | ||
var _a; | ||
const config = { | ||
const config = this.client.configSlug || { | ||
mode: this.client.mode, | ||
@@ -11,0 +11,0 @@ options: this.client.llms |
@@ -9,2 +9,3 @@ import * as Types from "./_types/portkeyConstructs"; | ||
llms?: [Types.LLMOptions] | null; | ||
configSlug?: string | null; | ||
} | ||
@@ -16,3 +17,4 @@ export declare class Portkey extends ApiClient { | ||
llms: [Types.LLMOptions] | null; | ||
constructor({ apiKey, baseURL, mode, llms }: ApiClientInterface); | ||
configSlug: string | null; | ||
constructor({ apiKey, baseURL, mode, llms, configSlug }: ApiClientInterface); | ||
protected constructLlms(llms?: [Types.LLMOptions] | null): [Types.LLMOptions] | null; | ||
@@ -19,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 } = _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, configSlug } = _a; | ||
super({ | ||
@@ -50,2 +50,3 @@ apiKey, | ||
this.llms = this.constructLlms(llms || null); | ||
this.configSlug = configSlug || null; | ||
} | ||
@@ -52,0 +53,0 @@ constructLlms(llms) { |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "0.1.1"; | ||
export declare const VERSION = "0.1.12"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = '0.1.1'; | ||
exports.VERSION = '0.1.12'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "portkey-ai", | ||
"version": "0.1.11", | ||
"version": "0.1.12", | ||
"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
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
69980
1059
1