Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@prompt-foundry/typescript-sdk

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prompt-foundry/typescript-sdk - npm Package Compare versions

Comparing version 1.0.20 to 1.0.21

3

build/main/Client.d.ts

@@ -6,4 +6,5 @@ import { ChatCompletionCreateParamsNonStreaming, ChatCompletionMessageParam } from 'openai/resources';

private apiKey;
constructor({ apiKey }: {
constructor({ apiKey, baseUrl }: {
apiKey: string;
baseUrl?: string;
});

@@ -10,0 +11,0 @@ getRawPrompt({ id }: {

@@ -6,4 +6,5 @@ "use strict";

const client_1 = require("./openapi/client");
const BASE_URL = 'https://api.promptfoundry.ai/sdk/v1';
class PromptFoundry {
constructor({ apiKey }) {
constructor({ apiKey, baseUrl = BASE_URL }) {
// @ts-expect-error - protect against missing apiKey for js consumers

@@ -14,3 +15,3 @@ if (apiKey === '' || apiKey === undefined || apiKey === null || apiKey === 0) {

this.apiKey = apiKey;
this.client = (0, client_1.createApiClient)('https://api.promptfoundry.ai/sdk/v1');
this.client = (0, client_1.createApiClient)(baseUrl);
}

@@ -191,2 +192,2 @@ async getRawPrompt({ id }) {

exports.default = PromptFoundry;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2xpZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL0NsaWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUVBLHVDQUFtSjtBQUNuSiw2Q0FBdUY7QUFDdkYsNkNBQXVEO0FBYXZELE1BQXFCLGFBQWE7SUFLaEMsWUFBWSxFQUFFLE1BQU0sRUFBc0I7UUFDeEMscUVBQXFFO1FBQ3JFLElBQUksTUFBTSxLQUFLLEVBQUUsSUFBSSxNQUFNLEtBQUssU0FBUyxJQUFJL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BQWxQRCxnQ0FrUEMifQ==

@@ -6,4 +6,5 @@ import { ChatCompletionCreateParamsNonStreaming, ChatCompletionMessageParam } from 'openai/resources';

private apiKey;
constructor({ apiKey }: {
constructor({ apiKey, baseUrl }: {
apiKey: string;
baseUrl?: string;
});

@@ -10,0 +11,0 @@ getRawPrompt({ id }: {

import { addAppendedMessages, addOverrideMessages, getMissingPromptVariables, renderPromptWithVariables, validatePromptVariables } from './helpers';
import { mapOpenAIMessagesToMessages, mapPromptToOpenAIConfig } from './helpers/openAi';
import { createApiClient } from './openapi/client';
const BASE_URL = 'https://api.promptfoundry.ai/sdk/v1';
export default class PromptFoundry {
client;
apiKey;
constructor({ apiKey }) {
constructor({ apiKey, baseUrl = BASE_URL }) {
// @ts-expect-error - protect against missing apiKey for js consumers

@@ -13,3 +14,3 @@ if (apiKey === '' || apiKey === undefined || apiKey === null || apiKey === 0) {

this.apiKey = apiKey;
this.client = createApiClient('https://api.promptfoundry.ai/sdk/v1');
this.client = createApiClient(baseUrl);
}

@@ -189,2 +190,2 @@ async getRawPrompt({ id }) {

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2xpZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL0NsaWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsbUJBQW1CLEVBQUUseUJBQXlCLEVBQUUseUJBQXlCLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxXQUFXLENBQUE7QUFDbkosT0FBTyxFQUFFLDJCQUEyQixFQUFFLHVCQUF1QixFQUFFLE1BQU0sa0JBQWtCLENBQUE7QUFDdkYsT0FBTyxFQUFPLGVBQWUsRUFBRSxNQUFNLGtCQUFrQixDQUFBO0FBYXZELE1BQU0sQ0FBQyxPQUFPLE9BQU8sYUFBYTtJQUN4QixNQUFNLENBQVk7SUFFbEI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FdBQVcsRUFBRSxJQUFJLENBQUMsTUFBTTthQUN6QjtTQUNGLENBQUMsQ0FBQTtJQUNKLENBQUM7SUFFTSxjQUFjO1FBQ25CLE9BQU8sSUFBSSxDQUFDLE1BQU0sQ0FBQyxjQUFjLENBQUM7WUFDaEMsT0FBTyxFQUFFO2dCQUNQLFdBQVcsRUFBRSxJQUFJLENBQUMsTUFBTTthQUN6QjtTQUNGLENBQUMsQ0FBQTtJQUNKLENBQUM7Q0FDRiJ9

@@ -5,2 +5,2 @@ # Changelog

### [1.0.20](https://github.com/prompt-foundry/typescript-sdk/compare/v1.0.19...v1.0.20) (2024-06-07)
### [1.0.21](https://github.com/prompt-foundry/typescript-sdk/compare/v1.0.20...v1.0.21) (2024-06-07)
{
"name": "@prompt-foundry/typescript-sdk",
"version": "1.0.20",
"version": "1.0.21",
"description": "The Typescript SDK for the prompt engineering, prompt management, and prompt testing tool Prompt Foundry.",

@@ -5,0 +5,0 @@ "main": "build/main/index.js",

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