{"_id":"@aiapi/claude-omg","name":"@aiapi/claude-omg","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@aiapi/claude-omg","version":"0.0.1","description":"⚙ A simple api for minimax","main":"dist/index.common.js","module":"dist/index.esm.js","scripts":{"test":"jest --coverage","lint":"eslint ./src --ext .js,.ts --fix","build":"rm -rf ./dist && rollup -c rollup.config.js","build:docs":"typedoc","build:watch":"rollup -c rollup.config.js -w"},"types":"index.d.ts","keywords":["aiapi","minimax","llm-sdk"],"author":{"name":"Souler Ou","url":"ou@souler.cc"},"license":"MIT","dependencies":{"core-js":"^3.8.0"},"devDependencies":{"@babel/core":"^7.12.9","@babel/preset-env":"^7.12.7","@commitlint/cli":"9.1.2","@commitlint/config-conventional":"9.1.2","@rollup/plugin-babel":"^5.1.0","@rollup/plugin-commonjs":"^11.0.0","@rollup/plugin-node-resolve":"^10.0.0","@rollup/plugin-replace":"^2.3.3","@rollup/plugin-typescript":"^2.0.0","@types/jest":"^26.0.15","@types/node":"^14.14.10","@types/semver":"6.2.2","@typescript-eslint/eslint-plugin":"^3.10.1","@typescript-eslint/parser":"^3.10.1","commitizen":"4.2.1","cz-customizable":"5.2.0","eslint":"^6.7.2","eslint-plugin-prettier":"^3.1.1","jest":"^26.6.3","prettier":"^1.19.1","rollup":"^2.23.0","rollup-plugin-dts":"^2.0.1","ts-jest":"26.4.1","ts-loader":"^8.0.3","typedoc":"0.22.10","typedoc-neo-theme":"1.1.1","typedoc-plugin-markdown":"3.5.0","typescript":"^4.3.0"},"config":{"commitizen":{"path":"./node_modules/cz-customizable"},"cz-customizable":{"config":".cz-configrc.js"}},"gitHead":"b533a3daf4a8c528074dd489a316cfaa7fabb032","_id":"@aiapi/claude-omg@0.0.1","_nodeVersion":"18.4.0","_npmVersion":"8.12.1","dist":{"integrity":"sha512-EmfSteWZY8PIrFLZffQ10KrOa6lv7XbCIz7xF+2h6E8rY2gCSnBBt1dlAJihcawvWaX8mmiw281wVGgMPK+cpg==","shasum":"555df0552e4badd8a655eba129be4e023fb90363","tarball":"https://registry.npmjs.org/@aiapi/claude-omg/-/claude-omg-0.0.1.tgz","fileCount":5,"unpackedSize":28148,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCO537AwkzDTotyObv8ace7PiJvOM5GF0KPqxk8fqlBigIhAPoUmuSZFzqEqr8abrA7BqWx6esCjUxg8uLu5A1SUE6Z"}]},"_npmUser":{"name":"soulerou","email":"ou@souler.cc"},"directories":{},"maintainers":[{"name":"soulerou","email":"ou@souler.cc"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/claude-omg_0.0.1_1697106657401_0.3202823053670665"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-12T10:30:57.260Z","0.0.1":"2023-10-12T10:30:57.617Z","modified":"2023-10-12T10:30:57.914Z"},"maintainers":[{"name":"soulerou","email":"ou@souler.cc"}],"description":"⚙ A simple api for minimax","keywords":["aiapi","minimax","llm-sdk"],"author":{"name":"Souler Ou","url":"ou@souler.cc"},"license":"MIT","readme":"# AIAPI - Claude2 LLM client (OhMyGPT Provide)\n\nThis documentation provides an overview of the OMG Claude2 service and its available functions. The OMG Claude2 service offers various functionalities for interacting with the Claude2 model.\n\n\n## Why aiapi?\naiapi provide the minimum implementation for the LLM/App api, you can easily use it at no much efforts. It's especially suitable for anyone to test / run an ai-based app prototype.\n\n\n## Installation\n```shell\n# installation via npm\nnpm install @aiapi/claude-omg --save\n\n# installation via yarn\nyarn add @aiapi/claude-omg --save\n\n# installation via pnpm\npnpm install @aiapi/claude-omg --save\n```\n\n\n## Table of Contents\n- [Simple OMG Claude2 Invocation](#simple-omg-claude2-invocation)\n- [OMG Claude2 Template Invocation](#omg-claude2-template-invocation)\n- use OmgClaudeService directly\n\n\n## Simple OMG Claude2 Invocation\n\nCalls the OMG's Claude2 service based on the given image source address, prompt, and appKey.\n\n### Usage\n\n```typescript\nimport { simpleCallOmgClaude, OmgClaudeSimpleCallParam } from '@aiapi/claude-omg'\n\nconst params: OmgClaudeSimpleCallParam = {\n    mirrorType: 'base', // optional values: 'base' | 'mirror_1' | 'mirror_2' | 'mirror_3'\n    content: 'Your content here',\n    key: 'Your API key'\n}\n\nconst response: Promise<string> = simpleCallOmgClaude(params);\n```\n\n### Parameters\n\n- `params` (OmgClaudeSimpleCallParam): An object containing the following parameters:\n  - `mirrorType` (string, optional): Image source address, optional values: 'base' | 'mirror_1' | 'mirror_2' | 'mirror_3'.\n  - `content` (string): The content for Claude2 processing.\n  - `key` (string): The API key for authentication.\n\n### Returns\n\n- `response` (Promise<string>): A promise that resolves to a string representing the API's response.\n\n## OMG Claude2 Template Invocation\n\nCalls the OMG's Claude2 service based on the given template JSON, input parameters, and appKey.\n\n### Usage\n\n```typescript\nimport { callOmgClaude, OmgClaudeTemplateCallParam } from '@aiapi/claude-omg'\n\n// Example template JSON:\nconst template: OmgClaudeTemplateCallParam = {\n    url: 'https://example.com/template.json',\n    content: 'Your content here',\n    key: 'Your API key'\n}\n\n// Alternatively, you can provide the template content directly:\n// const template: OmgClaudeTemplateCallParam = {\n//     tpl: '{ \"template\": \"content\"}',\n//     content: 'Your content here',\n//     key: 'Your API key'\n// }\n\nconst response: Promise<string> = callOmgClaude(template);\n```\n\n### Parameters\n\n- `template` (OmgClaudeTemplateCallParam): An object containing the following parameters:\n  - `url` (string): The URL of the template JSON file.\n  - `content` (string): The content for Claude2 processing.\n  - `key` (string): The API key for authentication.\n\n### Returns\n\n- `response` (Promise<string>): A promise that resolves to a string representing the API's response.\n","readmeFilename":"README.md"}