New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@imaginary-dev/runtime

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@imaginary-dev/runtime - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

9

dist/prompt-engine/src/prompt-openai-chat.js

@@ -50,4 +50,4 @@ "use strict";

],
max_tokens: serviceParameters?.openai?.max_tokens ?? undefined,
temperature: serviceParameters?.openai?.temperature ?? exports.DEFAULT_TEMPERATURE,
max_tokens: serviceParameters?.openai?.max_tokens ?? getMaxTokensForModel(model),
...(0, util_1.getSafeOpenAIServiceParameters)(serviceParameters),

@@ -87,9 +87,2 @@ };

exports.runPrompt = runPrompt;
function getMaxTokensForModel(model) {
// GPT-3.5 can do about 4k total.
if (model.includes("gpt-3.5"))
return 3000;
// GPT-4 can do about 8k total.
return 7000;
}
exports.runPromptWithRetry = (0, util_2.wrapWithRetry)(exports.runPrompt, {

@@ -96,0 +89,0 @@ minTimeout: 300,

2

package.json
{
"name": "@imaginary-dev/runtime",
"version": "0.0.6",
"version": "0.0.7",
"description": "Runs imaginary functions as LLM prompts",

@@ -5,0 +5,0 @@ "files": [

Sorry, the diff of this file is not supported yet

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