mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 17:00:59 +00:00
- Define clean API with complete() method and callbacks for streaming - Add comprehensive type system for messages, tools, and usage - Implement AnthropicAI provider with full feature support: - Thinking/reasoning with signatures - Tool calling with parallel execution - Streaming via callbacks (onText, onThinking) - Proper error handling and stop reasons - Cache tracking for input/output tokens - Add working test/example demonstrating tool execution flow - Support for system prompts, temperature, max tokens - Proper message role types: user, assistant, toolResult
33 lines
No EOL
862 B
JSON
33 lines
No EOL
862 B
JSON
{
|
|
"name": "@mariozechner/ai",
|
|
"version": "0.5.8",
|
|
"description": "Unified API for OpenAI, Anthropic, and Google Gemini LLM providers",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"files": ["dist", "README.md"],
|
|
"scripts": {
|
|
"clean": "rm -rf dist",
|
|
"build": "tsc -p tsconfig.build.json",
|
|
"check": "biome check --write .",
|
|
"prepublishOnly": "npm run clean && npm run build"
|
|
},
|
|
"dependencies": {
|
|
"openai": "5.12.2",
|
|
"@anthropic-ai/sdk": "0.60.0",
|
|
"@google/genai": "1.14.0",
|
|
"chalk": "^5.5.0"
|
|
},
|
|
"devDependencies": {},
|
|
"keywords": ["ai", "llm", "openai", "anthropic", "gemini", "unified", "api"],
|
|
"author": "Mario Zechner",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/badlogic/pi-mono.git",
|
|
"directory": "packages/ai"
|
|
},
|
|
"engines": {
|
|
"node": ">=20.0.0"
|
|
}
|
|
} |