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

@re-ai/free-api

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@re-ai/free-api - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

3

dist/services/dify.js

@@ -64,2 +64,3 @@ "use strict";

const data = response;
Logger_1.Logger.debug("dify response data: ", data);
return {

@@ -78,3 +79,3 @@ id: data.message_id,

object: "chat.completion",
usage: data.usage || undefined
usage: data.metadata.usage || data.usage || undefined
};

@@ -81,0 +82,0 @@ }

{
"name": "@re-ai/free-api",
"version": "0.0.4",
"version": "0.0.5",
"description": "",

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

@@ -74,2 +74,3 @@ import { IAIApi } from "../interfaces/IAIApi";

const data = response as DIFYChatCompletionResponse
Logger.debug("dify response data: ", data)
return {

@@ -88,3 +89,3 @@ id: data.message_id,

object: "chat.completion",
usage: data.usage || undefined
usage: data.metadata.usage || data.usage || undefined
} as ChatCompletionResponse

@@ -91,0 +92,0 @@ } else {

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