0.0.1 • Published 8 months ago

@nagauta/raycast-ai-sdk v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Raycast AI SDK

Raycast AI SDK for integrating everything for Raycast Pro subscribers

Installation

yarn add raycast-ai-sdk

Usage

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 install

Scripts

  • yarn build - Compile TypeScript
  • yarn test - Run tests
  • yarn lint - Static code analysis
  • yarn format - Format code

License

MIT

0.0.1

8 months ago