npm.io
3.9.0 • Published 4d ago

@mathrunet/masamune_ai_openai

Licence
MIT
Version
3.9.0
Deps
5
Size
64 kB
Vulns
0
Weekly
0
Stars
2

Masamune logo

Masamune AI OpenAI

Follow on GitHub Follow on X Follow on YouTube Maintained with Melos

GitHub Sponsor


[GitHub] | [YouTube] | [Packages] | [X] | [LinkedIn] | [mathru.net]


Masamune framework plugin package for interacting with OpenAI's GPT.

Also, katana_functions_firebase can be used to execute server-side functions from methods defined on the client side, allowing for safe implementation.

Installation

Install the following packages

npm install @mathrunet/masamune_ai_openai

Implementation

Import the package as follows and pass the value of exports and the list of functions you wish to define to the deploy function.

import * as m from "@mathrunet/masamune_ai_openai";

// Define [m.Functions.xxxx] for the functions to be added to Functions.
// 
// Functionsに追加する機能を[m.Functions.xxxx]を定義してください。
m.deploy(
    exports,
    [
        // Function for OpenAI ChatGPT.
        m.Functions.openAIChatGPT,
    ],
);

Functions passed to deploy are deployed to Cloud Functions for Firebase.

GitHub Sponsors

Sponsors are always welcome. Thank you for your support!

https://github.com/sponsors/mathrunet