add-model
/add-model
Dodaje nowy model językowy (OpenAI, Anthropic, Google) do bazy kodu Giselle, rejestrując go i integrując z systemem.
- Autor
- giselles-ai ↗
- Repozytorium
- giselle ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 26.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 8
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
Co robi i kiedy
Dodaje nowy model językowy (OpenAI, Anthropic, Google) do bazy kodu Giselle, rejestrując go i integrując z systemem.
Oryginalny opis (EN)
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.
Jak działa
- Quick Start
- Required Information
- Files to Update (In Order)
- Validation Checklist
- Provider-Specific Patterns
Podgląd 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](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](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](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](UI-CONFIG.md).
## Validation Checklist
Run these commands in order (all must pass):
```bash
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:
- [OPENAI.md](OPENAI.md) - OpenAI models (GPT-5.x family)
- [ANTHROPIC.md](ANTHROPIC.md) - Anthropic models (Claude family)
- [GOOGLE.md](GOOGLE.md) - Google models (Gemini family)
Pliki w paczce (8)
- ANTHROPIC.md 2 KB
- GOOGLE.md 3 KB
- LANGUAGE-MODEL.md 2 KB
- OPENAI.md 5 KB
- PRICING.md 2 KB
- REGISTRY.md 4 KB
- SKILL.md 3 KB
- UI-CONFIG.md 2 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · giselles-ai/giselle | 100 | Apache-2.0 |
| steamfield/stacks | 86 | Apache-2.0 |
Migawka bazy z 13.11.2026 · wersja paczki 1de99416a964 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100provider-onboarding
Pomaga dodać dostawcę LLM: endpoint, zmienną klucza API, identyfikator modelu i limity, dla dostawców zgodnych z OpenAI lub Anthropic. - 100add-llm-model
Prowadzi przez dodanie nowych dostawców i modeli LLM, takich jak OpenAI, Codex czy DeepSeek, do projektu. - 100add-new-model
Dodaje do pydantic-ai obsługę nowo wydanego modelu językowego lub graficznego: literały, flagi profilu, adaptery i testy, z uwzględnieniem opóźnień SDK, list bramek i sprawdzania możliwości. - 100sync-model-catalog
Odświeża katalogi modeli Agenta, listy dostawców OpenAI, Anthropic, Codex, Pi i OpenRouter oraz domyślne ustawienia przed wydaniem. - 100model-discovery
Pobiera aktualne nazwy modeli od dostawców AI (Anthropic, OpenAI, Gemini, Ollama), przypisuje je do poziomów fast, default i heavy oraz wykrywa nowe modele. - 100llm-client-golden-path
Poprawnie podłącza klienta LLM (OpenAI, Azure OpenAI, Anthropic, Gemini): pozyskiwanie kluczy, miejsce klienta, pułapki parametrów modeli rozumujących i wspólny rejestr identyfikatorów modeli.