0.0.1 • Published 8 months ago
@nagauta/raycast-ai-sdk v0.0.1
Raycast AI SDK
Raycast AI SDK for integrating everything for Raycast Pro subscribers
Installation
yarn add raycast-ai-sdkUsage
import { askAI } from 'raycast-ai-sdk';
async function main() {
const result = await askAI("Content you want to ask the AI");
console.log(result);
}Sample
yarn tsx sample/sample.ts
Options
You can set the following options when asking the AI:
creativity: "high" | "medium" | "low"model: AI model to use (default: "openai-gpt-4")
Prerequisites
- Raycast must be installed
- Raycast Pro subscription is requiredd
- Raycast Port must be installed
- callbackExec option must be enabled in Raycast Port
Development
Setup
yarn installScripts
yarn build- Compile TypeScriptyarn test- Run testsyarn lint- Static code analysisyarn format- Format code
License
MIT
0.0.1
8 months ago