ワンクリックで
add-model
// 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 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.
| 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 a new language model to the Giselle codebase with full system consistency.
pnpm format && pnpm build-sdk && pnpm check-types && pnpm tidy && pnpm testBefore starting, collect:
File: packages/language-model-registry/src/{provider}.ts
Add the model definition. See REGISTRY.md for detailed examples.
File: packages/language-model/src/{provider}.ts
Update three locations:
OpenAILanguageModelId).catch() blockmodels arraySee LANGUAGE-MODEL.md for detailed examples.
File: packages/language-model/src/costs/model-prices.ts
Add pricing entry to the appropriate table. See PRICING.md.
File: packages/giselle/src/generations/v2/language-model/transform-giselle-to-ai-sdk.ts
Add model ID to the switch case for the provider.
File: packages/node-registry/src/node-conversion.ts
Add bidirectional conversion:
case "model-id": return "provider/model-id";case "provider/model-id": return "model-id";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.
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
See detailed patterns for each provider: