- Ontario, Canada
- https://zakscode.com
- Joined on
2023-07-26
Block a user
@ztimson/ai-utils (0.1.4)
Installation
@ztimson:registry=npm install @ztimson/ai-utils@0.1.4"@ztimson/ai-utils": "0.1.4"About this package
Table of Contents
About
A TypeScript library that provides a unified interface for working with multiple AI providers, making it easy to integrate various AI capabilities into your applications.
Features
- Multi-Provider LLM Support: Seamlessly work with OpenAI, Anthropic (Claude), and Self-hosted (Ollama) models
- Audio Speech Recognition (ASR): Convert audio to text using Whisper models
- Optical Character Recognition (OCR): Extract text from images using Tesseract
- Semantic Similarity: Compare text similarity using tensor-based cosine similarity
- Provider Abstraction: Switch between AI providers without changing your code
Built With
Setup
Development
Prerequisites
Instructions
- Install the dependencies:
npm i - Build library:
npm build - Run unit tests:
npm test
Documentation
License
Copyright © 2023 Zakary Timson | Available under MIT Licensing
See the license for more information.
Dependencies
Dependencies
| ID | Version |
|---|---|
| @anthropic-ai/sdk | ^0.67.0 |
| @tensorflow/tfjs | ^4.22.0 |
| @ztimson/node-utils | ^1.0.4 |
| @ztimson/utils | ^0.27.9 |
| ollama | ^0.6.0 |
| openai | ^6.6.0 |
| tesseract.js | ^6.0.1 |
Development Dependencies
| ID | Version |
|---|---|
| @types/node | ^24.8.1 |
| typedoc | ^0.26.7 |
| typescript | ^5.3.3 |
| vite | ^5.0.12 |
| vite-plugin-dts | ^4.5.3 |
Details
Assets (1)
Versions (6)
View all
ai-utils-0.1.4.tgz
40 KiB