@empiricalrun/llm
Advanced tools
Comparing version 0.9.24 to 0.9.25
# @empiricalrun/llm | ||
## 0.9.25 | ||
### Patch Changes | ||
- 3eb7547: feat: added support for authorization using API key in point api | ||
## 0.9.24 | ||
@@ -4,0 +10,0 @@ |
@@ -12,3 +12,3 @@ "use strict"; | ||
const cache_1 = require("./cache"); | ||
const API_BASE_URL = process.env.VISION_MODEL_ENDPOINT; | ||
const API_BASE_URL = "https://api.empirical.run/vision"; | ||
/** | ||
@@ -121,3 +121,6 @@ * Call the vision model to get the coordinates for a prompt. Set `useCache` to | ||
async function getLlmResponse(base64Image, prompt) { | ||
const url = `${API_BASE_URL}/predict`; | ||
const url = `${API_BASE_URL}/coordinates`; | ||
if (!process.env.EMPIRICAL_API_KEY) { | ||
throw new Error("EMPIRICAL_API_KEY is not set. Please set this environment variable."); | ||
} | ||
const response = await (0, async_retry_1.default)(async () => { | ||
@@ -128,2 +131,3 @@ const response = await fetch(url, { | ||
"Content-Type": "application/json", | ||
Authorization: `${process.env.EMPIRICAL_API_KEY}`, | ||
}, | ||
@@ -130,0 +134,0 @@ body: JSON.stringify({ |
{ | ||
"name": "@empiricalrun/llm", | ||
"version": "0.9.24", | ||
"version": "0.9.25", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "exports": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
49018
910
10