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

@bnk/ai

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bnk/ai - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json

@@ -6,3 +6,3 @@ {

"type": "module",
"version": "1.0.0",
"version": "1.0.1",
"scripts": {

@@ -9,0 +9,0 @@ "test": "bun test src/",

@@ -8,3 +8,3 @@ // model-fetcher-service.ts

LMSTUDIO_BASE_URL,
OLLAMA_BASE_URL, OPENAI_BASE_URL,
OLLAMA_BASE_URL, OPENAI_BASE_URL,
OPENROUTER_BASE_URL,

@@ -24,3 +24,3 @@ XAI_BASE_URL

XAIModel,
} from "./model-types";

@@ -214,4 +214,4 @@

// -----------------------------
async listOllamaModels(): Promise<UnifiedModel[]> {
const response = await fetch(`${process.env.OLLAMA_BASE_URL || "http://localhost:11434"}/api/tags`);
async listOllamaModels({ baseUrl = "http://localhost:11434" }: { baseUrl: string }): Promise<UnifiedModel[]> {
const response = await fetch(`${baseUrl}/api/tags`);
if (!response.ok) {

@@ -218,0 +218,0 @@ const errorText = await response.text();

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