portkey-ai
Advanced tools
Comparing version 1.5.1 to 1.5.2
{ | ||
"name": "portkey-ai", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "Node client library for the Portkey API", | ||
@@ -5,0 +5,0 @@ "types": "./src/index.d.ts", |
@@ -24,1 +24,2 @@ export { Chat } from './chatCompletions'; | ||
export { ApiKeys } from './apiKeys'; | ||
export { Logs } from './logsExport'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ApiKeys = exports.Uploads = exports.BetaChat = exports.VectorStores = exports.Audio = exports.Moderations = exports.FineTuning = exports.VirtualKeys = exports.Batches = exports.Configs = exports.Admin = exports.Models = exports.MainFiles = exports.Threads = exports.Assistants = exports.Images = exports.Embeddings = exports.postMethod = exports.Prompt = exports.Generations = exports.Feedback = exports.createHeaders = exports.Completions = exports.Chat = void 0; | ||
exports.Logs = exports.ApiKeys = exports.Uploads = exports.BetaChat = exports.VectorStores = exports.Audio = exports.Moderations = exports.FineTuning = exports.VirtualKeys = exports.Batches = exports.Configs = exports.Admin = exports.Models = exports.MainFiles = exports.Threads = exports.Assistants = exports.Images = exports.Embeddings = exports.postMethod = exports.Prompt = exports.Generations = exports.Feedback = exports.createHeaders = exports.Completions = exports.Chat = void 0; | ||
var chatCompletions_1 = require("./chatCompletions.js"); | ||
@@ -51,2 +51,4 @@ Object.defineProperty(exports, "Chat", { enumerable: true, get: function () { return chatCompletions_1.Chat; } }); | ||
Object.defineProperty(exports, "ApiKeys", { enumerable: true, get: function () { return apiKeys_1.ApiKeys; } }); | ||
var logsExport_1 = require("./logsExport.js"); | ||
Object.defineProperty(exports, "Logs", { enumerable: true, get: function () { return logsExport_1.Logs; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -24,1 +24,2 @@ export { Chat } from './chatCompletions'; | ||
export { ApiKeys } from './apiKeys'; | ||
export { Logs } from './logsExport'; |
@@ -37,3 +37,3 @@ "use strict"; | ||
const headers = defaultParseHeaders(props); | ||
const json = Object.assign(Object.assign({}, (yield response.json())), { getHeaders: () => headers }); | ||
const json = Object.assign(Object.assign({}, yield response.json()), { getHeaders: () => headers }); | ||
return json; | ||
@@ -40,0 +40,0 @@ } |
@@ -60,3 +60,3 @@ import KeepAliveAgent from 'agentkeepalive'; | ||
const json = { | ||
...(await response.json()), | ||
...(await response.json() as any), | ||
getHeaders: () => headers, | ||
@@ -63,0 +63,0 @@ }; |
@@ -58,2 +58,3 @@ import { ApiClientInterface } from './_types/generalTypes'; | ||
configs: API.Configs; | ||
logs: API.Logs; | ||
beta: { | ||
@@ -60,0 +61,0 @@ assistants: API.Assistants; |
@@ -87,2 +87,3 @@ "use strict"; | ||
this.configs = new API.Configs(this); | ||
this.logs = new API.Logs(this); | ||
this.beta = { | ||
@@ -89,0 +90,0 @@ assistants: new API.Assistants(this), |
@@ -165,2 +165,3 @@ import { ApiClientInterface } from './_types/generalTypes'; | ||
configs = new API.Configs(this); | ||
logs = new API.Logs(this); | ||
beta = { | ||
@@ -167,0 +168,0 @@ assistants: new API.Assistants(this), |
@@ -7,2 +7,3 @@ import OpenAI from 'openai'; | ||
import { CongfigsListParams } from './apis/configs'; | ||
import { LogsExportListParams } from './apis/logsExport'; | ||
type PlatformProperties = { | ||
@@ -24,3 +25,3 @@ 'x-portkey-runtime'?: string; | ||
export declare function initOpenAIClient(client: Portkey): OpenAI; | ||
export declare function toQueryParams(params?: UsersListParams | UserInviteListParams | WorkspacesListParams | WorkspaceMemberListParams | VirtualKeysListParams | ApiKeysListParams | CongfigsListParams): string; | ||
export declare function toQueryParams(params?: UsersListParams | UserInviteListParams | WorkspacesListParams | WorkspaceMemberListParams | VirtualKeysListParams | ApiKeysListParams | CongfigsListParams | LogsExportListParams | any): string; | ||
export {}; |
@@ -14,2 +14,3 @@ import { OPEN_AI_API_KEY, PORTKEY_HEADER_PREFIX } from './constants'; | ||
import { CongfigsListParams } from './apis/configs'; | ||
import { LogsExportListParams } from './apis/logsExport'; | ||
@@ -160,2 +161,3 @@ type PlatformProperties = { | ||
| CongfigsListParams | ||
| LogsExportListParams|any | ||
): string { | ||
@@ -162,0 +164,0 @@ if (!params) { |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "1.5.1"; | ||
export declare const VERSION = "1.5.2"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = '1.5.1'; | ||
exports.VERSION = '1.5.2'; | ||
//# sourceMappingURL=version.js.map |
@@ -1,1 +0,1 @@ | ||
export const VERSION = '1.5.1'; | ||
export const VERSION = '1.5.2'; |
{ | ||
"name": "portkey-ai", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "Node client library for the Portkey API", | ||
@@ -5,0 +5,0 @@ "types": "dist/src/index.d.ts", |
@@ -24,1 +24,2 @@ export { Chat } from './chatCompletions'; | ||
export { ApiKeys } from './apiKeys'; | ||
export { Logs } from './logsExport'; |
@@ -60,3 +60,3 @@ import KeepAliveAgent from 'agentkeepalive'; | ||
const json = { | ||
...(await response.json()), | ||
...(await response.json() as any), | ||
getHeaders: () => headers, | ||
@@ -63,0 +63,0 @@ }; |
@@ -165,2 +165,3 @@ import { ApiClientInterface } from './_types/generalTypes'; | ||
configs = new API.Configs(this); | ||
logs = new API.Logs(this); | ||
beta = { | ||
@@ -167,0 +168,0 @@ assistants: new API.Assistants(this), |
@@ -14,2 +14,3 @@ import { OPEN_AI_API_KEY, PORTKEY_HEADER_PREFIX } from './constants'; | ||
import { CongfigsListParams } from './apis/configs'; | ||
import { LogsExportListParams } from './apis/logsExport'; | ||
@@ -160,2 +161,3 @@ type PlatformProperties = { | ||
| CongfigsListParams | ||
| LogsExportListParams|any | ||
): string { | ||
@@ -162,0 +164,0 @@ if (!params) { |
@@ -1,1 +0,1 @@ | ||
export const VERSION = '1.5.1'; | ||
export const VERSION = '1.5.2'; |
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
7447271
264
16046