スキル一覧に戻る
giselles-ai

add-model

by giselles-ai

add-modelは、業務プロセスの自動化を支援するスキルです。ワークフロー管理と自動化により、生産性の向上と運用効率の改善を実現します。

451🍴 88📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


name: add-model description: Add a new language model to the Giselle codebase. Use when the user wants to add, register, or integrate a new LLM model (OpenAI, Anthropic, Google) into the system.

Add Language Model

Add a new language model to the Giselle codebase with full system consistency.

Quick Start

  1. Gather model specifications (or search web for official docs)
  2. Update files in order listed below
  3. Run validation: pnpm format && pnpm build-sdk && pnpm check-types && pnpm tidy && pnpm test

Required Information

Before starting, collect:

  • Provider: openai, anthropic, or google
  • Model ID: e.g., "gpt-5.3", "claude-opus-5"
  • Context window: Maximum input tokens
  • Max output tokens: Maximum output tokens
  • Knowledge cutoff: Date of training data cutoff
  • Pricing: Input/output cost per million tokens
  • Capabilities: Reasoning, image input, web search, etc.
  • Configuration options: Reasoning effort levels, verbosity, temperature, etc.

Files to Update (In Order)

1. Language Model Registry (Primary Definition)

File: packages/language-model-registry/src/{provider}.ts

Add the model definition. See REGISTRY.md for detailed examples.

2. Language Model Package

File: packages/language-model/src/{provider}.ts

Update three locations:

  1. Add to the enum (e.g., OpenAILanguageModelId)
  2. Add regex catch for dated versions in .catch() block
  3. Create model instance and add to models array

See LANGUAGE-MODEL.md for detailed examples.

3. Model Pricing

File: packages/language-model/src/costs/model-prices.ts

Add pricing entry to the appropriate table. See PRICING.md.

4. AI SDK Transformation

File: packages/giselle/src/generations/v2/language-model/transform-giselle-to-ai-sdk.ts

Add model ID to the switch case for the provider.

5. Node Conversion

File: packages/node-registry/src/node-conversion.ts

Add bidirectional conversion:

  • Short to full: case "model-id": return "provider/model-id";
  • Full to short: case "provider/model-id": return "model-id";

6. UI Configuration (If Needed)

File: internal-packages/workflow-designer-ui/src/editor/properties-panel/text-generation-node-properties-panel/model/{provider}.tsx

Update if model has unique configuration options. See UI-CONFIG.md.

Validation Checklist

Run these commands in order (all must pass):

pnpm format      # Format code
pnpm build-sdk   # Build SDK packages
pnpm check-types # Verify types
pnpm tidy        # Check for unused code
pnpm test        # Run all tests

Provider-Specific Patterns

See detailed patterns for each provider:

スコア

総合スコア

70/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

+5
最近の活動

3ヶ月以内に更新

+5
フォーク

10回以上フォークされている

+5
Issue管理

オープンIssueが50未満

0/5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

レビュー

💬

レビュー機能は近日公開予定です