add-model
Skill561 starsChanged 12 months agoApache-2.0View on GitHub
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.
13 other projects use a version of this.
Adopted by
Most recently taken up by
- aws-solutions-library-samples/accelerated-intelligent-document-processing-on-awstheir own version, first seen Nov 29, 2026
- theopenco/llmgatewaytheir own version, first seen Nov 25, 2026
- KevinArce/create-bun-apitheir own version, first seen Oct 25, 2026
- whitecircle/halotheir own version, first seen Oct 9, 2026
- guoqingbao/vllm.rstheir own version, first seen Oct 8, 2026
- autogluon/tabarenatheir own version, first seen Oct 8, 2026
Used with
Projects with it also use release.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillrelease
Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).
Also in 3 projects that use this
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- simstudioai/sim★ 30ksame name
- netbox-community/netbox★ 22ksame name
- theopenco/llmgateway★ 1.8ksame name
- whitecircle/halo★ 1.3ksame name
- Pipelex/pipelex★ 951same name
- adaline/gateway★ 608same name
- autogluon/tabarena★ 380same name
- guoqingbao/vllm.rs★ 345same name
- aws-solutions-library-samples/accelerated-intelligent-document-processing-on-aws★ 329same name
- BerriAI/litellm-skills★ 84same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- .cursor/rules/design-mode.mdcCursor rule
- .cursor/rules/development-guide.mdcCursor rule
- .cursor/rules/edit-workspace-tour.mdcCursor rule
- .cursor/rules/language-support.mdcCursor rule
- .cursor/rules/naming-guide.mdcCursor rule
- .cursor/rules/nodejs.mdcCursor rule
- .cursor/rules/update-ai-sdk.mdcCursor rule
- .cursor/rules/vercel-cli.mdcCursor rule
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 6 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Add a new language model to the Giselle codebase with full system consistency.
- Distinctive: line 13
Update files in order listed below
- Distinctive: line 34
Add the model definition. See REGISTRY.md for detailed examples.
- Very specific: line 41
Add to the enum (e.g., OpenAILanguageModelId)
- Very specific: line 42
Add regex catch for dated versions in .catch() block
- Very specific: line 43
Create model instance and add to models array
- Distinctive: line 51
Add pricing entry to the appropriate table.
- Distinctive: line 57
Add model ID to the switch case for the provider.
- Distinctive: line 71
Update if model has unique configuration options.
- Distinctive: line 75
Run these commands in order (all must pass):
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Add Language Model
Add a new language model to the Giselle codebase with full system consistency.
Quick Start
- Gather model specifications (or search web for official docs)
- Update files in order listed below
- 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:
- Add to the enum (e.g.,
OpenAILanguageModelId) - Add regex catch for dated versions in
.catch()block - Create model instance and add to
modelsarray
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 testsProvider-Specific Patterns
See detailed patterns for each provider:
- OPENAI.md - OpenAI models (GPT-5.x family)
- ANTHROPIC.md - Anthropic models (Claude family)
- GOOGLE.md - Google models (Gemini family)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

