
Security News
arXiv Is Rate Limiting Authors Following a Flood of AI Slop Submissions
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.
@haiec/openai
Advanced tools
OpenAI SDK wrapper with automatic usage tracking and cost calculation for HAIEC AI Inventory
OpenAI SDK wrapper with automatic usage tracking and cost calculation for HAIEC AI Inventory.
npm install @haiec/openai
haiec_sk_xxx key (shown only once!)import { TrackedOpenAI } from '@haiec/openai';
const client = new TrackedOpenAI({
apiKey: process.env.OPENAI_API_KEY, // Your OpenAI key
haiecApiKey: process.env.HAIEC_API_KEY, // Your HAIEC tracking key
});
// Use exactly like the official OpenAI SDK
const response = await client.chat.completions.create({
model: 'gpt-4-turbo',
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(response.choices[0].message.content);
Visit HAIEC Dashboard to see:
| Model | Input Cost | Output Cost |
|---|---|---|
| gpt-4-turbo | $10.00/1M | $30.00/1M |
| gpt-4 | $30.00/1M | $60.00/1M |
| gpt-4-32k | $60.00/1M | $120.00/1M |
| gpt-3.5-turbo | $0.50/1M | $1.50/1M |
| gpt-3.5-turbo-16k | $3.00/1M | $4.00/1M |
| gpt-3.5-turbo | $0.50 | $1.50 |
| gpt-3.5-turbo-16k | $3.00 | $4.00 |
Pricing is automatically updated based on OpenAI's latest rates.
For each API call, the following data is logged to HAIEC:
openaigpt-4-turbochat.completionsIf usage tracking fails, the error is logged to console but your OpenAI API call continues normally:
try {
const response = await client.chat.completions.create({...});
// Your response is returned even if tracking fails
} catch (error) {
// Only OpenAI API errors are thrown
}
This wrapper maintains 100% compatibility with the official OpenAI SDK. All methods and parameters work exactly the same.
MIT
Built by Subodh Kc — a HAIEC (Human AI Evidence Company) product.
FAQs
OpenAI SDK wrapper with automatic usage tracking and cost calculation for HAIEC AI Inventory
We found that @haiec/openai demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.

Research
/Security News
A new GhostAction wave hits hundreds of GitHub repos, expanding CI/CD secret theft to cloud and AI credentials in source code and git history.

Research
/Security News
Tensorlake npm SDK version 0.5.144 was compromised in a ChainDrop / Shai-Hulud attack, delivering credential-stealing malware.