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

@ai-sdk/fireworks

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/fireworks - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

11

CHANGELOG.md
# @ai-sdk/fireworks
## 0.1.2
### Patch Changes
- 3a58a2e: feat (ai/core): throw NoImageGeneratedError from generateImage when no predictions are returned.
- Updated dependencies [ed012d2]
- Updated dependencies [3a58a2e]
- @ai-sdk/openai-compatible@0.1.2
- @ai-sdk/provider-utils@2.1.2
- @ai-sdk/provider@1.0.6
## 0.1.1

@@ -4,0 +15,0 @@

17

dist/index.js

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

}) {
var _a;
var _a, _b, _c, _d;
const warnings = [];

@@ -166,3 +166,4 @@ const backendConfig = modelToBackendConfig[this.modelId];

const splitSize = size == null ? void 0 : size.split("x");
const { value: response } = await (0, import_provider_utils.postJsonToApi)({
const currentDate = (_c = (_b = (_a = this.config._internal) == null ? void 0 : _a.currentDate) == null ? void 0 : _b.call(_a)) != null ? _c : /* @__PURE__ */ new Date();
const { value: response, responseHeaders } = await (0, import_provider_utils.postJsonToApi)({
url: getUrlForModel(this.config.baseURL, this.modelId),

@@ -176,3 +177,3 @@ headers: (0, import_provider_utils.combineHeaders)(this.config.headers(), headers),

...splitSize && { width: splitSize[0], height: splitSize[1] },
...(_a = providerOptions.fireworks) != null ? _a : {}
...(_d = providerOptions.fireworks) != null ? _d : {}
},

@@ -184,3 +185,11 @@ failedResponseHandler: statusCodeErrorResponseHandler,

});
return { images: [new Uint8Array(response)], warnings };
return {
images: [new Uint8Array(response)],
warnings,
response: {
timestamp: currentDate,
modelId: this.modelId,
headers: responseHeaders
}
};
}

@@ -187,0 +196,0 @@ };

{
"name": "@ai-sdk/fireworks",
"version": "0.1.1",
"version": "0.1.2",
"license": "Apache-2.0",

@@ -22,5 +22,5 @@ "sideEffects": false,

"dependencies": {
"@ai-sdk/openai-compatible": "0.1.1",
"@ai-sdk/provider": "1.0.5",
"@ai-sdk/provider-utils": "2.1.1"
"@ai-sdk/openai-compatible": "0.1.2",
"@ai-sdk/provider": "1.0.6",
"@ai-sdk/provider-utils": "2.1.2"
},

@@ -27,0 +27,0 @@ "devDependencies": {

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

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