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.11 to 1.0.12

10

build/main/__tests__/Client.test.js

@@ -65,3 +65,3 @@ "use strict";

presencePenalty: 0,
responseFormat: 'text',
responseFormat: 'TEXT',
temperature: 0.7,

@@ -103,3 +103,3 @@ topP: 1,

presencePenalty: 0,
responseFormat: 'text',
responseFormat: 'TEXT',
temperature: 0.7,

@@ -142,3 +142,3 @@ topP: 1,

presencePenalty: 0,
responseFormat: 'text',
responseFormat: 'TEXT',
temperature: 0.7,

@@ -180,3 +180,3 @@ topP: 1,

presencePenalty: 0,
responseFormat: 'text',
responseFormat: 'TEXT',
temperature: 0.7,

@@ -218,3 +218,3 @@ topP: 1,

presencePenalty: 0,
responseFormat: 'text',
responseFormat: 'TEXT',
temperature: 0.7,

@@ -221,0 +221,0 @@ topP: 1,

@@ -135,3 +135,3 @@ "use strict";

frequencyPenalty: 0.0,
responseFormat: 'json',
responseFormat: 'JSON',
seed: 0

@@ -155,3 +155,3 @@ },

frequencyPenalty: 0.0,
responseFormat: 'json',
responseFormat: 'JSON',
seed: 0

@@ -177,3 +177,3 @@ },

frequencyPenalty: 0.0,
responseFormat: 'json',
responseFormat: 'JSON',
seed: 0

@@ -197,3 +197,3 @@ },

frequencyPenalty: 0.0,
responseFormat: 'json',
responseFormat: 'JSON',
seed: 0

@@ -200,0 +200,0 @@ },

@@ -55,3 +55,3 @@ "use strict";

response_format: {
type: promptParameters.responseFormat === 'json' ? 'json_object' : 'text'
type: promptParameters.responseFormat === 'JSON' ? 'json_object' : 'text'
},

@@ -58,0 +58,0 @@ tools: promptTools.map((tool) => mapToolToOpenAi(tool))

@@ -42,5 +42,5 @@ import type {

* example:
* text
* TEXT
*/
responseFormat: "text" | "json";
responseFormat: "TEXT" | "JSON";
/**

@@ -47,0 +47,0 @@ * example:

@@ -60,3 +60,3 @@ import Client from '../Client';

presencePenalty: 0,
responseFormat: 'text',
responseFormat: 'TEXT',
temperature: 0.7,

@@ -98,3 +98,3 @@ topP: 1,

presencePenalty: 0,
responseFormat: 'text',
responseFormat: 'TEXT',
temperature: 0.7,

@@ -137,3 +137,3 @@ topP: 1,

presencePenalty: 0,
responseFormat: 'text',
responseFormat: 'TEXT',
temperature: 0.7,

@@ -175,3 +175,3 @@ topP: 1,

presencePenalty: 0,
responseFormat: 'text',
responseFormat: 'TEXT',
temperature: 0.7,

@@ -213,3 +213,3 @@ topP: 1,

presencePenalty: 0,
responseFormat: 'text',
responseFormat: 'TEXT',
temperature: 0.7,

@@ -216,0 +216,0 @@ topP: 1,

@@ -133,3 +133,3 @@ import { PromptMessageRoleEnum } from '../../types';

frequencyPenalty: 0.0,
responseFormat: 'json',
responseFormat: 'JSON',
seed: 0

@@ -156,3 +156,3 @@ },

frequencyPenalty: 0.0,
responseFormat: 'json',
responseFormat: 'JSON',
seed: 0

@@ -181,3 +181,3 @@ },

frequencyPenalty: 0.0,
responseFormat: 'json',
responseFormat: 'JSON',
seed: 0

@@ -201,3 +201,3 @@ },

frequencyPenalty: 0.0,
responseFormat: 'json',
responseFormat: 'JSON',
seed: 0

@@ -204,0 +204,0 @@ },

@@ -51,3 +51,3 @@ export const mapMessagesToOpenAI = (promptMessages) => {

response_format: {
type: promptParameters.responseFormat === 'json' ? 'json_object' : 'text'
type: promptParameters.responseFormat === 'JSON' ? 'json_object' : 'text'
},

@@ -54,0 +54,0 @@ tools: promptTools.map((tool) => mapToolToOpenAi(tool))

@@ -42,5 +42,5 @@ import type {

* example:
* text
* TEXT
*/
responseFormat: "text" | "json";
responseFormat: "TEXT" | "JSON";
/**

@@ -47,0 +47,0 @@ * example:

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

### [1.0.11](https://github.com/prompt-foundry/typescript-sdk/compare/v1.0.10...v1.0.11) (2024-05-22)
### [1.0.12](https://github.com/prompt-foundry/typescript-sdk/compare/v1.0.11...v1.0.12) (2024-05-23)
{
"name": "@prompt-foundry/typescript-sdk",
"version": "1.0.11",
"version": "1.0.12",
"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