1.プラグインストア
プラグインストアで直接302.AIを検索すると、公式プラグインが見つかります。
ワークフローに追加した後、302.AIのバックエンド - APIを使用 - API Keysで生成されたAPI KEYを入力すると、使用できるようになります。
2. プラグインの作成
プラグインストアのプラグインを使用せず、自分で作成することもできます。
個人スペース - プラグインで、右上の「インポート」を選択します。
URL及Raw dateを選択します。
以下の内容をコピーしてください:
info:
description: 302_AI
title: 302_AI
version: v1
openapi: 3.0.1
paths:
/v1/chat/completions:
post:
operationId: Chat
parameters:
- description: AI Management Backend - Use API - API Keys, copy the generated API Key
in: header
name: Authorization
required: true
schema:
default: sk-xxx
type: string
requestBody:
content:
application/json:
schema:
properties:
message:
default: Hello
description: messages sent to LLM
type: string
model:
default: gpt-4o
description: LLM model names
type: string
required:
- message
- model
type: object
responses:
"200":
content:
application/json:
schema:
properties:
output:
description: the output of LLM
type: string
type: object
description: new desc
default:
description: ""
summary: |-
Engage in single-round conversations with various LLMs. Please check the 302.AI official website API documentation for the model list; both domestic and international open-source models are fully supported.
You only need to input the model and message to obtain the output. It is the simplest plugin for calling various large models.
It is particularly suitable for use in various workflows that have high requirements for text capabilities, serving as a pure input and output process.
servers:
- url: https://api.302.ai/v1/chat/completions
確認をクリックします:
プラグインを有効にし、デバッグをクリックします:
302.AIのバックエンド - APIを使用- API Keysで生成されたAPI KEYを入力し、実行をクリックしてから完了をクリックします。
完了後、右上の「公開」をクリックし、次に「いいえ」をクリックすると、プラグインがワークフローで使用できるようになります。