@axflow/models
Version:
Zero-dependency, modular SDK for building robust natural language applications
219 lines (218 loc) • 6.27 kB
JSON
{
"name": "@axflow/models",
"version": "0.0.25",
"description": "Zero-dependency, modular SDK for building robust natural language applications",
"author": "Axflow (https://axflow.dev)",
"homepage": "https://github.com/axflow/axflowtree/main/packages/models#readme",
"license": "MIT",
"sideEffects": false,
"keywords": [
"ai",
"llm",
"stream",
"streaming",
"streams",
"openai",
"azure",
"anthropic",
"cohere",
"ollama",
"palm",
"llama2",
"embeddings",
"generative ai",
"gpt4",
"models",
"useChat",
"nextjs",
"react",
"hugging face",
"huggingface"
],
"files": [
"dist/**/*"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/axflow/axflow.git"
},
"bugs": {
"url": "https://github.com/axflow/axflowissues"
},
"scripts": {
"clean": "rm -rf ./dist",
"prebuild": "npm run clean",
"build": "tsup",
"lint": "prettier --check 'src/**/*.ts' 'test/**/*.ts'",
"format": "prettier --write 'src/**/*.ts' 'test/**/*.ts'",
"test": "jest --testMatch \"./**/test/**/*.test.ts\"",
"prepublishOnly": "npm run build"
},
"engines": {
"node": ">=18"
},
"devDependencies": {
"@types/jest": "^29.5.3",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"jest": "^29.6.2",
"prettier": "^3.0.2",
"ts-jest": "^29.1.1",
"tsup": "^7.2.0",
"typescript": "^5.1.6"
},
"peerDependencies": {
"react": "^18.2.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
}
},
"typesVersions": {
"*": {
"openai/chat": [
"./dist/openai/chat.d.ts"
],
"openai/completion": [
"./dist/openai/completion.d.ts"
],
"openai/embedding": [
"./dist/openai/embedding.d.ts"
],
"azure-openai/chat": [
"./dist/azure-openai/chat.d.ts"
],
"google/generate-content": [
"./dist/google/generate-content.d.ts"
],
"anthropic/completion": [
"./dist/anthropic/completion.d.ts"
],
"cohere/generation": [
"./dist/cohere/generation.d.ts"
],
"cohere/embedding": [
"./dist/cohere/embedding.d.ts"
],
"ollama/generation": [
"./dist/ollama/generation.d.ts"
],
"ollama/embedding": [
"./dist/ollama/embedding.d.ts"
],
"react": [
"./dist/react/index.d.ts"
],
"node": [
"./dist/node/index.d.ts"
],
"huggingface": [
"./dist/huggingface/index.d.ts"
],
"togetherai": [
"./dist/togetherai/inference.d.ts"
],
"shared": [
"./dist/shared/index.d.ts"
]
}
},
"exports": {
"./package.json": "./package.json",
"./openai/chat": {
"types": "./dist/openai/chat.d.ts",
"import": "./dist/openai/chat.mjs",
"module": "./dist/openai/chat.mjs",
"require": "./dist/openai/chat.js"
},
"./openai/completion": {
"types": "./dist/openai/completion.d.ts",
"import": "./dist/openai/completion.mjs",
"module": "./dist/openai/completion.mjs",
"require": "./dist/openai/completion.js"
},
"./openai/embedding": {
"types": "./dist/openai/embedding.d.ts",
"import": "./dist/openai/embedding.mjs",
"module": "./dist/openai/embedding.mjs",
"require": "./dist/openai/embedding.js"
},
"./azure-openai/chat": {
"types": "./dist/azure-openai/chat.d.ts",
"import": "./dist/azure-openai/chat.mjs",
"module": "./dist/azure-openai/chat.mjs",
"require": "./dist/azure-openai/chat.js"
},
"./google/generate-content": {
"types": "./dist/google/generate-content.d.ts",
"import": "./dist/google/generate-content.mjs",
"module": "./dist/google/generate-content.mjs",
"require": "./dist/google/generate-content.js"
},
"./anthropic/completion": {
"types": "./dist/anthropic/completion.d.ts",
"import": "./dist/anthropic/completion.mjs",
"module": "./dist/anthropic/completion.mjs",
"require": "./dist/anthropic/completion.js"
},
"./cohere/generation": {
"types": "./dist/cohere/generation.d.ts",
"import": "./dist/cohere/generation.mjs",
"module": "./dist/cohere/generation.mjs",
"require": "./dist/cohere/generation.js"
},
"./cohere/embedding": {
"types": "./dist/cohere/embedding.d.ts",
"import": "./dist/cohere/embedding.mjs",
"module": "./dist/cohere/embedding.mjs",
"require": "./dist/cohere/embedding.js"
},
"./ollama/generation": {
"types": "./dist/ollama/generation.d.ts",
"import": "./dist/ollama/generation.mjs",
"module": "./dist/ollama/generation.mjs",
"require": "./dist/ollama/generation.js"
},
"./ollama/embedding": {
"types": "./dist/ollama/embedding.d.ts",
"import": "./dist/ollama/embedding.mjs",
"module": "./dist/ollama/embedding.mjs",
"require": "./dist/ollama/embedding.js"
},
"./huggingface/text-generation": {
"types": "./dist/huggingface/text-generation.d.ts",
"import": "./dist/huggingface/text-generation.mjs",
"module": "./dist/huggingface/text-generation.mjs",
"require": "./dist/huggingface/text-generation.js"
},
"./togetherai/inference": {
"types": "./dist/togetherai/inference.d.ts",
"import": "./dist/togetherai/inference.mjs",
"module": "./dist/togetherai/inference.mjs",
"require": "./dist/togetherai/inference.js"
},
"./react": {
"types": "./dist/react/index.d.ts",
"import": "./dist/react/index.mjs",
"module": "./dist/react/index.mjs",
"require": "./dist/react/index.js"
},
"./node": {
"types": "./dist/node/index.d.ts",
"import": "./dist/node/index.mjs",
"module": "./dist/node/index.mjs",
"require": "./dist/node/index.js"
},
"./shared": {
"types": "./dist/shared/index.d.ts",
"import": "./dist/shared/index.mjs",
"module": "./dist/shared/index.mjs",
"require": "./dist/shared/index.js"
}
},
"gitHead": "ce5804a2661738dac0eabd957f8db47de517da6d"
}