doccupine 0.0.159 → 0.0.160
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dist/templates/env.example.d.ts +1 -1
- package/dist/templates/env.example.js +2 -1
- package/dist/templates/mdx/ai-assistant.mdx.d.ts +1 -1
- package/dist/templates/mdx/ai-assistant.mdx.js +7 -3
- package/dist/templates/package.js +20 -20
- package/dist/templates/services/llm/config.d.ts +1 -1
- package/dist/templates/services/llm/config.js +50 -3
- package/dist/templates/services/llm/factory.d.ts +1 -1
- package/dist/templates/services/llm/factory.js +6 -3
- package/dist/templates/services/llm/types.d.ts +1 -1
- package/dist/templates/services/llm/types.js +2 -1
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -309,14 +309,16 @@ If `LLM_PROVIDER` is not set, the chat component is hidden automatically.
|
|
|
309
309
|
### Optional overrides
|
|
310
310
|
|
|
311
311
|
```env
|
|
312
|
-
LLM_CHAT_MODEL=gpt-4.1-
|
|
312
|
+
LLM_CHAT_MODEL=gpt-4.1-mini # Override the default chat model
|
|
313
313
|
LLM_EMBEDDING_MODEL=text-embedding-3-small # Override the default embedding model
|
|
314
|
-
LLM_TEMPERATURE=0 # Set temperature (0
|
|
314
|
+
LLM_TEMPERATURE=0 # Set temperature (default: 0; "default" sends none)
|
|
315
315
|
LLM_EMBEDDING_DIMS=512 # Dimensions for the prebuilt search index (default: 512)
|
|
316
316
|
RAG_RUNTIME_EMBED_MAX_CHUNKS=400 # Max chunks embedded on demand in production (default: 400; 0 requires a prebuilt index)
|
|
317
317
|
# RAG_API_KEY=... # Optional bearer auth for direct /api/rag requests
|
|
318
318
|
```
|
|
319
319
|
|
|
320
|
+
`LLM_TEMPERATURE` accepts 0 to 1 for Anthropic and 0 to 2 for OpenAI and Google; an invalid value is ignored with a warning. OpenAI's reasoning models (`o3`, `o4-mini`) and its GPT-5 models onwards reject a custom temperature, so none is sent to them.
|
|
321
|
+
|
|
320
322
|
`LLM_EMBEDDING_DIMS` Matryoshka-truncates document vectors so the prebuilt search index stays small; lower values shrink the index at a slight cost to recall. `RAG_RUNTIME_EMBED_MAX_CHUNKS` caps how many chunks the chat will embed on demand in production before requiring a prebuilt index (it's unlimited under `next dev`).
|
|
321
323
|
|
|
322
324
|
Public documentation leaves browser chat available by default. Setting `RAG_API_KEY` requires a bearer token for `/api/rag` and is intended for server-to-server use; the built-in browser cannot safely hold that secret. Use `SITE_PASSWORD` instead when authenticated browser visitors should retain chat access.
|
|
@@ -325,7 +327,7 @@ Default models per provider:
|
|
|
325
327
|
|
|
326
328
|
| Provider | Chat model | Embedding model |
|
|
327
329
|
| --------- | ---------------------------- | ------------------------ |
|
|
328
|
-
| OpenAI | `gpt-4.1-
|
|
330
|
+
| OpenAI | `gpt-4.1-mini` | `text-embedding-3-small` |
|
|
329
331
|
| Anthropic | `claude-sonnet-4-5-20250929` | OpenAI fallback |
|
|
330
332
|
| Google | `gemini-2.5-flash-lite` | `gemini-embedding-001` |
|
|
331
333
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const envExampleTemplate = "# Public Site URL\n# Used by sitemap.xml and robots.txt. Overrides `url` in config.json when set.\n# NEXT_PUBLIC_SITE_URL=https://docs.example.com\n\n# Password Protection (optional)\n# Set a shared password to gate the whole site behind a login screen. When set,\n# pages require the password, the content APIs (chat + search) return 401\n# without it, and the site is hidden from search engines and crawlers. Leave\n# unset (or remove) to keep the site public.\n# SITE_PASSWORD=choose-a-strong-shared-password\n\n# Paid API Access (recommended for public deployments with AI enabled)\n# Public documentation remains intentionally public by default. Set RAG_API_KEY\n# to require Authorization: Bearer <key> for /api/rag and prevent anonymous LLM\n# spend. The browser chat cannot safely hold this server secret; use\n# SITE_PASSWORD instead when authenticated browser chat is required.\n# RAG_API_KEY=generate-a-long-random-secret\n# Set DOCS_API_KEY to require bearer authentication for /api/mcp. If omitted,\n# MCP follows the site access mode and remains public on an intentionally public\n# documentation site.\n# DOCS_API_KEY=generate-another-long-random-secret\n\n# Remote Dev Access (optional, dev server only)\n# Hostnames (besides localhost) allowed to load the Next.js dev server's\n# resources, for when you browse the dev server over a LAN IP or a\n# Tailscale/VPN hostname. Without this, Next blocks the dev HMR socket for\n# such hosts and the page renders but never becomes interactive. Ignored by\n# production builds. Comma-separate multiple hostnames.\n# ALLOWED_DEV_ORIGINS=my-machine.tailnet-name.ts.net\n\n# LLM Provider Configuration\n# Choose your preferred LLM provider: openai, anthropic, or google\nLLM_PROVIDER=openai\n\n# API Keys (set the one matching your provider)\nOPENAI_API_KEY=your_openai_api_key_here\nANTHROPIC_API_KEY=your_anthropic_api_key_here\nGOOGLE_API_KEY=your_google_api_key_here\n\n# Optional: Override default chat model\n# See available models at your provider's docs:\n# OpenAI: https://platform.openai.com/docs/models\n# Anthropic: https://docs.anthropic.com/claude/docs/models-overview\n# Google: https://ai.google.dev/models/gemini\n# LLM_CHAT_MODEL=\n\n# Optional: Override default embedding model\n# See available embedding models at your provider's docs:\n# OpenAI: https://platform.openai.com/docs/guides/embeddings\n# Google: https://ai.google.dev/gemini-api/docs/embeddings\n# Note: Anthropic doesn't provide embeddings, will fallback to OpenAI\n# LLM_EMBEDDING_MODEL=\n\n# Optional: Set temperature (0-1, default: 0)\n# LLM_TEMPERATURE=0\n\n# Optional: Embedding dimensions for the prebuilt search index (default: 512)\n# Doc vectors are Matryoshka-truncated to this many dimensions and stored as\n# int8, which keeps services/mcp/docs-index.json small (~20x smaller than raw\n# floats) so large doc sets don't stall the AI chat on serverless cold starts.\n# Lower = smaller index, slightly lower recall. Values >= the model's native\n# dimension keep full precision. Rebuild after changing this.\n# LLM_EMBEDDING_DIMS=512\n";
|
|
1
|
+
export declare const envExampleTemplate = "# Public Site URL\n# Used by sitemap.xml and robots.txt. Overrides `url` in config.json when set.\n# NEXT_PUBLIC_SITE_URL=https://docs.example.com\n\n# Password Protection (optional)\n# Set a shared password to gate the whole site behind a login screen. When set,\n# pages require the password, the content APIs (chat + search) return 401\n# without it, and the site is hidden from search engines and crawlers. Leave\n# unset (or remove) to keep the site public.\n# SITE_PASSWORD=choose-a-strong-shared-password\n\n# Paid API Access (recommended for public deployments with AI enabled)\n# Public documentation remains intentionally public by default. Set RAG_API_KEY\n# to require Authorization: Bearer <key> for /api/rag and prevent anonymous LLM\n# spend. The browser chat cannot safely hold this server secret; use\n# SITE_PASSWORD instead when authenticated browser chat is required.\n# RAG_API_KEY=generate-a-long-random-secret\n# Set DOCS_API_KEY to require bearer authentication for /api/mcp. If omitted,\n# MCP follows the site access mode and remains public on an intentionally public\n# documentation site.\n# DOCS_API_KEY=generate-another-long-random-secret\n\n# Remote Dev Access (optional, dev server only)\n# Hostnames (besides localhost) allowed to load the Next.js dev server's\n# resources, for when you browse the dev server over a LAN IP or a\n# Tailscale/VPN hostname. Without this, Next blocks the dev HMR socket for\n# such hosts and the page renders but never becomes interactive. Ignored by\n# production builds. Comma-separate multiple hostnames.\n# ALLOWED_DEV_ORIGINS=my-machine.tailnet-name.ts.net\n\n# LLM Provider Configuration\n# Choose your preferred LLM provider: openai, anthropic, or google\nLLM_PROVIDER=openai\n\n# API Keys (set the one matching your provider)\nOPENAI_API_KEY=your_openai_api_key_here\nANTHROPIC_API_KEY=your_anthropic_api_key_here\nGOOGLE_API_KEY=your_google_api_key_here\n\n# Optional: Override default chat model\n# See available models at your provider's docs:\n# OpenAI: https://platform.openai.com/docs/models\n# Anthropic: https://docs.anthropic.com/claude/docs/models-overview\n# Google: https://ai.google.dev/models/gemini\n# LLM_CHAT_MODEL=\n\n# Optional: Override default embedding model\n# See available embedding models at your provider's docs:\n# OpenAI: https://platform.openai.com/docs/guides/embeddings\n# Google: https://ai.google.dev/gemini-api/docs/embeddings\n# Note: Anthropic doesn't provide embeddings, will fallback to OpenAI\n# LLM_EMBEDDING_MODEL=\n\n# Optional: Set temperature (0-1 for Anthropic, 0-2 for OpenAI and Google, default: 0)\n# Use \"default\" to send none and keep the model's own default\n# LLM_TEMPERATURE=0\n\n# Optional: Embedding dimensions for the prebuilt search index (default: 512)\n# Doc vectors are Matryoshka-truncated to this many dimensions and stored as\n# int8, which keeps services/mcp/docs-index.json small (~20x smaller than raw\n# floats) so large doc sets don't stall the AI chat on serverless cold starts.\n# Lower = smaller index, slightly lower recall. Values >= the model's native\n# dimension keep full precision. Rebuild after changing this.\n# LLM_EMBEDDING_DIMS=512\n";
|
|
@@ -51,7 +51,8 @@ GOOGLE_API_KEY=your_google_api_key_here
|
|
|
51
51
|
# Note: Anthropic doesn't provide embeddings, will fallback to OpenAI
|
|
52
52
|
# LLM_EMBEDDING_MODEL=
|
|
53
53
|
|
|
54
|
-
# Optional: Set temperature (0-1, default: 0)
|
|
54
|
+
# Optional: Set temperature (0-1 for Anthropic, 0-2 for OpenAI and Google, default: 0)
|
|
55
|
+
# Use "default" to send none and keep the model's own default
|
|
55
56
|
# LLM_TEMPERATURE=0
|
|
56
57
|
|
|
57
58
|
# Optional: Embedding dimensions for the prebuilt search index (default: 512)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const aiAssistantMdxTemplate = "---\ntitle: \"AI Assistant\"\ndescription: \"Integrate AI capabilities into your Doccupine documentation using OpenAI, Anthropic, or Google Gemini.\"\ndate: \"2026-02-19\"\ncategory: \"AI & Integrations\"\ncategoryOrder: 3\ncategoryIcon: \"sparkles\"\norder: 1\n---\n# AI Assistant\n\nDoccupine supports AI integration to enhance your documentation experience. You can use OpenAI, Anthropic, or Google Gemini to power AI features in your documentation site. The AI assistant uses your documentation content as context, allowing users to ask questions about your docs and receive accurate answers based on the documentation.\n\n## Opening the Assistant\n\nOnce a provider is configured, an assistant button appears in the header. You can open and close the assistant from anywhere on the site by pressing <kbd>Command</kbd> + <kbd>I</kbd> (<kbd>Ctrl</kbd> + <kbd>I</kbd> on Windows). Press the same shortcut again to dismiss it.\n\n<Callout type=\"note\">\n The keyboard shortcut is only active once you have configured an LLM provider, as described below.\n</Callout>\n\nOn a site with [languages](/languages) or [versions](/versions), the assistant answers from the pages of the language and version the reader is on.\n\n## Setup\n\nTo enable AI features, create an `.env` file in the directory where your website is generated. By default, this is the `nextjs-app/` directory.\n\n## Configuration\n\nCreate an `.env` file with the following configuration options:\n\n```env\n# LLM Provider Configuration\n# Choose your preferred LLM provider: openai, anthropic, or google\nLLM_PROVIDER=openai\n\n# API Keys (set the one matching your provider)\nOPENAI_API_KEY=your_openai_api_key_here\nANTHROPIC_API_KEY=your_anthropic_api_key_here\nGOOGLE_API_KEY=your_google_api_key_here\n\n# Optional: Require a bearer token for direct /api/rag requests on a public site\n# RAG_API_KEY=generate-a-long-random-secret\n\n# Optional: Override default chat model (see your provider's docs for available models)\n# LLM_CHAT_MODEL=your-model-id\n\n# Optional: Override default embedding model (see your provider's docs for available models)\n# Note: Anthropic doesn't provide embeddings, will fallback to OpenAI\n# LLM_EMBEDDING_MODEL=your-embedding-model-id\n\n# Optional: Set temperature (0-1, default: 0)\n# LLM_TEMPERATURE=0\n\n# Optional: Embedding dimensions for the prebuilt search index (default: 512)\n# Doc vectors are truncated to this many dimensions and stored as int8 to keep\n# the search index small. Lower = smaller index, slightly lower recall.\n# Rebuild after changing this.\n# LLM_EMBEDDING_DIMS=512\n```\n\n## Provider Selection\n\nSet `LLM_PROVIDER` to one of the following values:\n\n- `openai` - Use OpenAI's models\n- `anthropic` - Use Anthropic's models\n- `google` - Use Google's models\n\n## API Keys\n\nYou need to set the API key that matches your chosen provider:\n\n- For OpenAI: Set `OPENAI_API_KEY`\n- For Anthropic: Set `ANTHROPIC_API_KEY`\n- For Google: Set `GOOGLE_API_KEY`\n\n<Callout type=\"warning\">\n Keep your API keys secure. Never commit your `.env` file to version control.\n</Callout>\n\n<Callout type=\"note\">\n Doccupine ignores every `.env*` variant except the non-secret\n `.env.example`, helping prevent development, test, and production credentials\n from being committed accidentally.\n</Callout>\n\n## Protecting model spend\n\nPublic documentation intentionally leaves the browser assistant available by default. For a public deployment where only server-to-server clients should call the paid RAG endpoint, set `RAG_API_KEY` and require `Authorization: Bearer <key>` on `/api/rag`.\n\n<Callout type=\"warning\">\n The built-in browser assistant cannot safely store a server API key. Setting\n `RAG_API_KEY` on an otherwise public site disables anonymous browser chat. Use\n `SITE_PASSWORD` instead when signed-in browser visitors should keep using the\n assistant, or leave `RAG_API_KEY` unset when public chat is intentional.\n</Callout>\n\n## Using Anthropic with OpenAI\n\nIf you want to use Anthropic as your LLM provider, you must also have an OpenAI API key set. Here's why:\n\n### The Situation\n\nAnthropic (Claude) does not provide an embeddings API. They only offer chat/completion models, not text embeddings.\n\nYour RAG (Retrieval-Augmented Generation) system has two components:\n\n- **Chat/Completion** - Generates answers, works with Anthropic.\n- **Embeddings** - Creates vector representations of text for search, Anthropic doesn't provide this.\n\nWhen using Anthropic as your `LLM_PROVIDER`, Doccupine will use Anthropic for chat/completion tasks, but will automatically fallback to OpenAI for embeddings. This means you need both API keys configured:\n\n```env\nLLM_PROVIDER=anthropic\nANTHROPIC_API_KEY=your_anthropic_api_key_here\nOPENAI_API_KEY=your_openai_api_key_here\n```\n\nThis hybrid approach allows you to leverage Anthropic's powerful chat models while still having access to embeddings functionality through OpenAI.\n\n## Default models\n\n| Provider | Chat model | Embedding model |\n| --------- | ---------------------------- | ------------------------ |\n| OpenAI | `gpt-4.1-
|
|
1
|
+
export declare const aiAssistantMdxTemplate = "---\ntitle: \"AI Assistant\"\ndescription: \"Integrate AI capabilities into your Doccupine documentation using OpenAI, Anthropic, or Google Gemini.\"\ndate: \"2026-02-19\"\ncategory: \"AI & Integrations\"\ncategoryOrder: 3\ncategoryIcon: \"sparkles\"\norder: 1\n---\n# AI Assistant\n\nDoccupine supports AI integration to enhance your documentation experience. You can use OpenAI, Anthropic, or Google Gemini to power AI features in your documentation site. The AI assistant uses your documentation content as context, allowing users to ask questions about your docs and receive accurate answers based on the documentation.\n\n## Opening the Assistant\n\nOnce a provider is configured, an assistant button appears in the header. You can open and close the assistant from anywhere on the site by pressing <kbd>Command</kbd> + <kbd>I</kbd> (<kbd>Ctrl</kbd> + <kbd>I</kbd> on Windows). Press the same shortcut again to dismiss it.\n\n<Callout type=\"note\">\n The keyboard shortcut is only active once you have configured an LLM provider, as described below.\n</Callout>\n\nOn a site with [languages](/languages) or [versions](/versions), the assistant answers from the pages of the language and version the reader is on.\n\n## Setup\n\nTo enable AI features, create an `.env` file in the directory where your website is generated. By default, this is the `nextjs-app/` directory.\n\n## Configuration\n\nCreate an `.env` file with the following configuration options:\n\n```env\n# LLM Provider Configuration\n# Choose your preferred LLM provider: openai, anthropic, or google\nLLM_PROVIDER=openai\n\n# API Keys (set the one matching your provider)\nOPENAI_API_KEY=your_openai_api_key_here\nANTHROPIC_API_KEY=your_anthropic_api_key_here\nGOOGLE_API_KEY=your_google_api_key_here\n\n# Optional: Require a bearer token for direct /api/rag requests on a public site\n# RAG_API_KEY=generate-a-long-random-secret\n\n# Optional: Override default chat model (see your provider's docs for available models)\n# LLM_CHAT_MODEL=your-model-id\n\n# Optional: Override default embedding model (see your provider's docs for available models)\n# Note: Anthropic doesn't provide embeddings, will fallback to OpenAI\n# LLM_EMBEDDING_MODEL=your-embedding-model-id\n\n# Optional: Set temperature (0-1 for Anthropic, 0-2 for OpenAI and Google, default: 0)\n# Use \"default\" to send none and keep the model's own default\n# LLM_TEMPERATURE=0\n\n# Optional: Embedding dimensions for the prebuilt search index (default: 512)\n# Doc vectors are truncated to this many dimensions and stored as int8 to keep\n# the search index small. Lower = smaller index, slightly lower recall.\n# Rebuild after changing this.\n# LLM_EMBEDDING_DIMS=512\n```\n\n## Provider Selection\n\nSet `LLM_PROVIDER` to one of the following values:\n\n- `openai` - Use OpenAI's models\n- `anthropic` - Use Anthropic's models\n- `google` - Use Google's models\n\n## API Keys\n\nYou need to set the API key that matches your chosen provider:\n\n- For OpenAI: Set `OPENAI_API_KEY`\n- For Anthropic: Set `ANTHROPIC_API_KEY`\n- For Google: Set `GOOGLE_API_KEY`\n\n<Callout type=\"warning\">\n Keep your API keys secure. Never commit your `.env` file to version control.\n</Callout>\n\n<Callout type=\"note\">\n Doccupine ignores every `.env*` variant except the non-secret\n `.env.example`, helping prevent development, test, and production credentials\n from being committed accidentally.\n</Callout>\n\n## Protecting model spend\n\nPublic documentation intentionally leaves the browser assistant available by default. For a public deployment where only server-to-server clients should call the paid RAG endpoint, set `RAG_API_KEY` and require `Authorization: Bearer <key>` on `/api/rag`.\n\n<Callout type=\"warning\">\n The built-in browser assistant cannot safely store a server API key. Setting\n `RAG_API_KEY` on an otherwise public site disables anonymous browser chat. Use\n `SITE_PASSWORD` instead when signed-in browser visitors should keep using the\n assistant, or leave `RAG_API_KEY` unset when public chat is intentional.\n</Callout>\n\n## Using Anthropic with OpenAI\n\nIf you want to use Anthropic as your LLM provider, you must also have an OpenAI API key set. Here's why:\n\n### The Situation\n\nAnthropic (Claude) does not provide an embeddings API. They only offer chat/completion models, not text embeddings.\n\nYour RAG (Retrieval-Augmented Generation) system has two components:\n\n- **Chat/Completion** - Generates answers, works with Anthropic.\n- **Embeddings** - Creates vector representations of text for search, Anthropic doesn't provide this.\n\nWhen using Anthropic as your `LLM_PROVIDER`, Doccupine will use Anthropic for chat/completion tasks, but will automatically fallback to OpenAI for embeddings. This means you need both API keys configured:\n\n```env\nLLM_PROVIDER=anthropic\nANTHROPIC_API_KEY=your_anthropic_api_key_here\nOPENAI_API_KEY=your_openai_api_key_here\n```\n\nThis hybrid approach allows you to leverage Anthropic's powerful chat models while still having access to embeddings functionality through OpenAI.\n\n## Default models\n\n| Provider | Chat model | Embedding model |\n| --------- | ---------------------------- | ------------------------ |\n| OpenAI | `gpt-4.1-mini` | `text-embedding-3-small` |\n| Anthropic | `claude-sonnet-4-5-20250929` | OpenAI fallback |\n| Google | `gemini-2.5-flash-lite` | `gemini-embedding-001` |\n\n## Optional Settings\n\n### Chat Model\n\nOverride the default chat model by uncommenting and setting `LLM_CHAT_MODEL`. You can use any available model from your chosen provider. For a complete list of available models, refer to the official documentation:\n\n- [OpenAI Models](https://platform.openai.com/docs/models)\n- [Anthropic Models](https://docs.anthropic.com/claude/docs/models-overview)\n- [Google Gemini Models](https://ai.google.dev/models/gemini)\n\n### Embedding Model\n\nOverride the default embedding model by uncommenting and setting `LLM_EMBEDDING_MODEL`. For a complete list of available embedding models, refer to the official documentation:\n\n- [OpenAI Embeddings](https://platform.openai.com/docs/guides/embeddings)\n- [Google Gemini Embeddings](https://ai.google.dev/gemini-api/docs/embeddings)\n- **Anthropic**: Anthropic doesn't provide embeddings. If you use Anthropic as your provider, Doccupine will fallback to OpenAI for embeddings.\n\n### Temperature\n\nControl the randomness of AI responses by setting `LLM_TEMPERATURE`. Anthropic accepts a value from 0 to 1, OpenAI and Google from 0 to 2:\n\n- `0` - More deterministic and focused responses (default)\n- `1` - More creative and varied responses\n- `default` - Send no temperature and keep the model's own default\n\nSome models do not accept a custom temperature: OpenAI's reasoning models (such as `o3` and `o4-mini`) and its GPT-5 models onwards. For those, Doccupine sends no temperature and ignores `LLM_TEMPERATURE` with a warning in the server logs. A value outside the provider's range is ignored the same way, and the default is used instead.\n\n### Embedding Dimensions\n\nControl the size of the prebuilt search index by setting `LLM_EMBEDDING_DIMS` (default: 512). Doc vectors are truncated to this many dimensions and stored as int8, keeping `services/mcp/docs-index.json` small so large doc sets don't stall the AI chat on serverless cold starts.\n\n- Lower values produce a smaller index with slightly lower search recall.\n- Values greater than or equal to the model's native dimension keep full precision.\n\nThis value must match between build time and runtime. A mismatch forces Doccupine to re-embed your docs at runtime, so rebuild or redeploy your site after changing it.";
|
|
@@ -49,7 +49,8 @@ GOOGLE_API_KEY=your_google_api_key_here
|
|
|
49
49
|
# Note: Anthropic doesn't provide embeddings, will fallback to OpenAI
|
|
50
50
|
# LLM_EMBEDDING_MODEL=your-embedding-model-id
|
|
51
51
|
|
|
52
|
-
# Optional: Set temperature (0-1, default: 0)
|
|
52
|
+
# Optional: Set temperature (0-1 for Anthropic, 0-2 for OpenAI and Google, default: 0)
|
|
53
|
+
# Use "default" to send none and keep the model's own default
|
|
53
54
|
# LLM_TEMPERATURE=0
|
|
54
55
|
|
|
55
56
|
# Optional: Embedding dimensions for the prebuilt search index (default: 512)
|
|
@@ -123,7 +124,7 @@ This hybrid approach allows you to leverage Anthropic's powerful chat models whi
|
|
|
123
124
|
|
|
124
125
|
| Provider | Chat model | Embedding model |
|
|
125
126
|
| --------- | ---------------------------- | ------------------------ |
|
|
126
|
-
| OpenAI | \`gpt-4.1-
|
|
127
|
+
| OpenAI | \`gpt-4.1-mini\` | \`text-embedding-3-small\` |
|
|
127
128
|
| Anthropic | \`claude-sonnet-4-5-20250929\` | OpenAI fallback |
|
|
128
129
|
| Google | \`gemini-2.5-flash-lite\` | \`gemini-embedding-001\` |
|
|
129
130
|
|
|
@@ -147,10 +148,13 @@ Override the default embedding model by uncommenting and setting \`LLM_EMBEDDING
|
|
|
147
148
|
|
|
148
149
|
### Temperature
|
|
149
150
|
|
|
150
|
-
Control the randomness of AI responses by setting \`LLM_TEMPERATURE
|
|
151
|
+
Control the randomness of AI responses by setting \`LLM_TEMPERATURE\`. Anthropic accepts a value from 0 to 1, OpenAI and Google from 0 to 2:
|
|
151
152
|
|
|
152
153
|
- \`0\` - More deterministic and focused responses (default)
|
|
153
154
|
- \`1\` - More creative and varied responses
|
|
155
|
+
- \`default\` - Send no temperature and keep the model's own default
|
|
156
|
+
|
|
157
|
+
Some models do not accept a custom temperature: OpenAI's reasoning models (such as \`o3\` and \`o4-mini\`) and its GPT-5 models onwards. For those, Doccupine sends no temperature and ignores \`LLM_TEMPERATURE\` with a warning in the server logs. A value outside the provider's range is ignored the same way, and the default is used instead.
|
|
154
158
|
|
|
155
159
|
### Embedding Dimensions
|
|
156
160
|
|
|
@@ -12,48 +12,48 @@ export const packageJsonTemplate = JSON.stringify({
|
|
|
12
12
|
"type-check": "tsgo --noEmit",
|
|
13
13
|
},
|
|
14
14
|
dependencies: {
|
|
15
|
-
"@langchain/anthropic": "^1.5.
|
|
16
|
-
"@langchain/core": "^1.2.
|
|
17
|
-
"@langchain/google-genai": "^2.3.
|
|
18
|
-
"@langchain/openai": "^1.
|
|
15
|
+
"@langchain/anthropic": "^1.5.12",
|
|
16
|
+
"@langchain/core": "^1.2.14",
|
|
17
|
+
"@langchain/google-genai": "^2.3.2",
|
|
18
|
+
"@langchain/openai": "^1.6.2",
|
|
19
19
|
"@mdx-js/react": "^3.1.1",
|
|
20
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
20
|
+
"@modelcontextprotocol/sdk": "^1.32.1",
|
|
21
21
|
"beautiful-mermaid": "^1.1.3",
|
|
22
22
|
"cherry-styled-components": "^0.2.17",
|
|
23
|
-
langchain: "^1.5.
|
|
24
|
-
"lucide-react": "^1.
|
|
23
|
+
langchain: "^1.5.15",
|
|
24
|
+
"lucide-react": "^1.52.0",
|
|
25
25
|
minisearch: "^7.2.0",
|
|
26
|
-
next: "16.3.
|
|
26
|
+
next: "16.3.8",
|
|
27
27
|
"next-mdx-remote": "^6.0.0",
|
|
28
|
-
"posthog-js": "^1.
|
|
29
|
-
"posthog-node": "^5.
|
|
30
|
-
react: "19.
|
|
31
|
-
"react-dom": "19.
|
|
28
|
+
"posthog-js": "^1.436.1",
|
|
29
|
+
"posthog-node": "^5.55.0",
|
|
30
|
+
react: "19.3.0",
|
|
31
|
+
"react-dom": "19.3.0",
|
|
32
32
|
"rehype-highlight": "^7.0.2",
|
|
33
33
|
"rehype-parse": "^9.0.1",
|
|
34
34
|
"rehype-stringify": "^10.0.1",
|
|
35
35
|
"remark-gfm": "^4.0.1",
|
|
36
36
|
"styled-components": "^6.5.3",
|
|
37
37
|
unified: "^11.0.5",
|
|
38
|
-
zod: "^4.5
|
|
38
|
+
zod: "^4.6.5",
|
|
39
39
|
},
|
|
40
40
|
devDependencies: {
|
|
41
|
-
"@next/env": "16.3.
|
|
42
|
-
"@next/eslint-plugin-next": "16.3.
|
|
41
|
+
"@next/env": "16.3.8",
|
|
42
|
+
"@next/eslint-plugin-next": "16.3.8",
|
|
43
43
|
"@types/node": "^26",
|
|
44
44
|
"@types/react": "^19",
|
|
45
45
|
"@types/react-dom": "^19",
|
|
46
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
47
|
-
"@typescript-eslint/parser": "^8.
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "^8.71.1",
|
|
47
|
+
"@typescript-eslint/parser": "^8.71.1",
|
|
48
48
|
"@typescript/native-preview": "^7.0.0-dev.20260707.2",
|
|
49
49
|
eslint: "^10",
|
|
50
50
|
"eslint-plugin-import": "^2.32.0",
|
|
51
51
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
52
52
|
"eslint-plugin-react": "^7.37.5",
|
|
53
53
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
54
|
-
globals: "^17.
|
|
55
|
-
prettier: "^3.9.
|
|
56
|
-
tsx: "^4.23.
|
|
54
|
+
globals: "^17.13.0",
|
|
55
|
+
prettier: "^3.9.9",
|
|
56
|
+
tsx: "^4.23.15",
|
|
57
57
|
typescript: "npm:@typescript/typescript6@^6.0.2",
|
|
58
58
|
},
|
|
59
59
|
}, null, 2) + "\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const llmConfigTemplate = "import type {\n LLMConfig,\n LLMProvider,\n ProviderDefaults,\n} from \"@/services/llm/types\";\nconst PROVIDER_DEFAULTS: ProviderDefaults = {\n openai: {\n chat: \"gpt-4.1-
|
|
1
|
+
export declare const llmConfigTemplate = "import type {\n LLMConfig,\n LLMProvider,\n ProviderDefaults,\n} from \"@/services/llm/types\";\nconst PROVIDER_DEFAULTS: ProviderDefaults = {\n openai: {\n chat: \"gpt-4.1-mini\",\n embedding: \"text-embedding-3-small\",\n },\n anthropic: {\n chat: \"claude-sonnet-4-5-20250929\",\n embedding: \"text-embedding-3-small\", // Fallback to OpenAI\n },\n google: {\n chat: \"gemini-2.5-flash-lite\",\n embedding: \"gemini-embedding-001\",\n },\n};\n// Used when LLM_TEMPERATURE is unset, for models that accept a temperature.\nconst DEFAULT_TEMPERATURE = 0;\nconst MAX_TEMPERATURE: Record<LLMProvider, number> = {\n openai: 2,\n anthropic: 1,\n google: 2,\n};\n// OpenAI's reasoning models (o1, o3, o4-mini) and its GPT-5 line onwards reject\n// a custom temperature, some of them any temperature at all. A vendor prefix\n// such as OpenRouter's \"openai/\" is ignored.\nconst NO_TEMPERATURE_MODEL = /^(?:[\\w-]+\\/)?(?:gpt-(?:[5-9]|\\d{2,})|o\\d)/;\nconst warnings = new Set<string>();\nfunction warnOnce(message: string): void {\n if (warnings.has(message)) return;\n warnings.add(message);\n console.warn(message);\n}\nfunction acceptsTemperature(provider: LLMProvider, chatModel: string): boolean {\n return provider !== \"openai\" || !NO_TEMPERATURE_MODEL.test(chatModel);\n}\n// Returns undefined when no temperature should be sent, leaving the model on\n// its own default: LLM_TEMPERATURE=default, or a model that rejects one.\nfunction resolveTemperature(\n provider: LLMProvider,\n chatModel: string,\n): number | undefined {\n const raw = process.env.LLM_TEMPERATURE?.trim() ?? \"\";\n if (raw.toLowerCase() === \"default\") return undefined;\n const accepted = acceptsTemperature(provider, chatModel);\n if (raw === \"\") return accepted ? DEFAULT_TEMPERATURE : undefined;\n const value = Number(raw);\n const max = MAX_TEMPERATURE[provider];\n if (!Number.isFinite(value) || value < 0 || value > max) {\n warnOnce(\n `Ignoring LLM_TEMPERATURE=\"${raw}\": ${provider} accepts a number from 0 to ${max}, or \"default\".`,\n );\n return accepted ? DEFAULT_TEMPERATURE : undefined;\n }\n if (!accepted) {\n warnOnce(\n `Ignoring LLM_TEMPERATURE: ${chatModel} does not accept a custom temperature.`,\n );\n return undefined;\n }\n return value;\n}\nfunction validateAPIKeys(provider: LLMProvider): void {\n const requiredKeys: Record<LLMProvider, string> = {\n openai: \"OPENAI_API_KEY\",\n anthropic: \"ANTHROPIC_API_KEY\",\n google: \"GOOGLE_API_KEY\",\n };\n const keyName = requiredKeys[provider];\n const keyValue = process.env[keyName];\n if (!keyValue) {\n throw new Error(\n `Missing API key for ${provider}. Please set ${keyName} in your environment variables.`,\n );\n }\n if (provider === \"anthropic\" && !process.env.OPENAI_API_KEY) {\n throw new Error(\n \"Anthropic provider requires OPENAI_API_KEY for embeddings. Please set OPENAI_API_KEY in your environment variables.\",\n );\n }\n}\nexport function isLLMAvailable(): boolean {\n const provider = (process.env.LLM_PROVIDER || \"openai\") as LLMProvider;\n const requiredKeys: Record<LLMProvider, string> = {\n openai: \"OPENAI_API_KEY\",\n anthropic: \"ANTHROPIC_API_KEY\",\n google: \"GOOGLE_API_KEY\",\n };\n const keyName = requiredKeys[provider];\n if (!keyName || !process.env[keyName]) return false;\n if (provider === \"anthropic\" && !process.env.OPENAI_API_KEY) return false;\n return true;\n}\nexport function getLLMConfig(): LLMConfig {\n const provider = (process.env.LLM_PROVIDER || \"openai\") as LLMProvider;\n if (![\"openai\", \"anthropic\", \"google\"].includes(provider)) {\n throw new Error(\n `Invalid LLM_PROVIDER: ${provider}. Must be one of: openai, anthropic, google`,\n );\n }\n validateAPIKeys(provider);\n const defaults = PROVIDER_DEFAULTS[provider];\n // Vectors are Matryoshka-truncated to this many dimensions before being\n // stored as int8, keeping the prebuilt search index small. Must match between\n // build time and runtime; a mismatch forces a re-embed. Values >= the model's\n // native dimension keep full precision (default: 512).\n const rawDims = process.env.LLM_EMBEDDING_DIMS;\n let embeddingDims = 512;\n if (rawDims !== undefined && rawDims !== \"\") {\n const parsed = parseInt(rawDims, 10);\n if (Number.isFinite(parsed) && parsed >= 0) embeddingDims = parsed;\n }\n const chatModel = process.env.LLM_CHAT_MODEL || defaults.chat;\n return {\n provider,\n chatModel,\n embeddingModel: process.env.LLM_EMBEDDING_MODEL || defaults.embedding,\n embeddingDims,\n temperature: resolveTemperature(provider, chatModel),\n };\n}\n";
|
|
@@ -5,7 +5,7 @@ export const llmConfigTemplate = `import type {
|
|
|
5
5
|
} from "@/services/llm/types";
|
|
6
6
|
const PROVIDER_DEFAULTS: ProviderDefaults = {
|
|
7
7
|
openai: {
|
|
8
|
-
chat: "gpt-4.1-
|
|
8
|
+
chat: "gpt-4.1-mini",
|
|
9
9
|
embedding: "text-embedding-3-small",
|
|
10
10
|
},
|
|
11
11
|
anthropic: {
|
|
@@ -17,6 +17,52 @@ const PROVIDER_DEFAULTS: ProviderDefaults = {
|
|
|
17
17
|
embedding: "gemini-embedding-001",
|
|
18
18
|
},
|
|
19
19
|
};
|
|
20
|
+
// Used when LLM_TEMPERATURE is unset, for models that accept a temperature.
|
|
21
|
+
const DEFAULT_TEMPERATURE = 0;
|
|
22
|
+
const MAX_TEMPERATURE: Record<LLMProvider, number> = {
|
|
23
|
+
openai: 2,
|
|
24
|
+
anthropic: 1,
|
|
25
|
+
google: 2,
|
|
26
|
+
};
|
|
27
|
+
// OpenAI's reasoning models (o1, o3, o4-mini) and its GPT-5 line onwards reject
|
|
28
|
+
// a custom temperature, some of them any temperature at all. A vendor prefix
|
|
29
|
+
// such as OpenRouter's "openai/" is ignored.
|
|
30
|
+
const NO_TEMPERATURE_MODEL = /^(?:[\\w-]+\\/)?(?:gpt-(?:[5-9]|\\d{2,})|o\\d)/;
|
|
31
|
+
const warnings = new Set<string>();
|
|
32
|
+
function warnOnce(message: string): void {
|
|
33
|
+
if (warnings.has(message)) return;
|
|
34
|
+
warnings.add(message);
|
|
35
|
+
console.warn(message);
|
|
36
|
+
}
|
|
37
|
+
function acceptsTemperature(provider: LLMProvider, chatModel: string): boolean {
|
|
38
|
+
return provider !== "openai" || !NO_TEMPERATURE_MODEL.test(chatModel);
|
|
39
|
+
}
|
|
40
|
+
// Returns undefined when no temperature should be sent, leaving the model on
|
|
41
|
+
// its own default: LLM_TEMPERATURE=default, or a model that rejects one.
|
|
42
|
+
function resolveTemperature(
|
|
43
|
+
provider: LLMProvider,
|
|
44
|
+
chatModel: string,
|
|
45
|
+
): number | undefined {
|
|
46
|
+
const raw = process.env.LLM_TEMPERATURE?.trim() ?? "";
|
|
47
|
+
if (raw.toLowerCase() === "default") return undefined;
|
|
48
|
+
const accepted = acceptsTemperature(provider, chatModel);
|
|
49
|
+
if (raw === "") return accepted ? DEFAULT_TEMPERATURE : undefined;
|
|
50
|
+
const value = Number(raw);
|
|
51
|
+
const max = MAX_TEMPERATURE[provider];
|
|
52
|
+
if (!Number.isFinite(value) || value < 0 || value > max) {
|
|
53
|
+
warnOnce(
|
|
54
|
+
\`Ignoring LLM_TEMPERATURE="\${raw}": \${provider} accepts a number from 0 to \${max}, or "default".\`,
|
|
55
|
+
);
|
|
56
|
+
return accepted ? DEFAULT_TEMPERATURE : undefined;
|
|
57
|
+
}
|
|
58
|
+
if (!accepted) {
|
|
59
|
+
warnOnce(
|
|
60
|
+
\`Ignoring LLM_TEMPERATURE: \${chatModel} does not accept a custom temperature.\`,
|
|
61
|
+
);
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
20
66
|
function validateAPIKeys(provider: LLMProvider): void {
|
|
21
67
|
const requiredKeys: Record<LLMProvider, string> = {
|
|
22
68
|
openai: "OPENAI_API_KEY",
|
|
@@ -67,12 +113,13 @@ export function getLLMConfig(): LLMConfig {
|
|
|
67
113
|
const parsed = parseInt(rawDims, 10);
|
|
68
114
|
if (Number.isFinite(parsed) && parsed >= 0) embeddingDims = parsed;
|
|
69
115
|
}
|
|
116
|
+
const chatModel = process.env.LLM_CHAT_MODEL || defaults.chat;
|
|
70
117
|
return {
|
|
71
118
|
provider,
|
|
72
|
-
chatModel
|
|
119
|
+
chatModel,
|
|
73
120
|
embeddingModel: process.env.LLM_EMBEDDING_MODEL || defaults.embedding,
|
|
74
121
|
embeddingDims,
|
|
75
|
-
temperature:
|
|
122
|
+
temperature: resolveTemperature(provider, chatModel),
|
|
76
123
|
};
|
|
77
124
|
}
|
|
78
125
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const llmFactoryTemplate = "import { ChatOpenAI, OpenAIEmbeddings } from \"@langchain/openai\";\nimport { ChatAnthropic } from \"@langchain/anthropic\";\nimport {\n ChatGoogleGenerativeAI,\n GoogleGenerativeAIEmbeddings,\n} from \"@langchain/google-genai\";\nimport type { LLMConfig } from \"@/services/llm/types\";\n\n/**\n * Creates a chat model instance based on the provider configuration\n */\nexport function createChatModel(config: LLMConfig) {\n switch (config.provider) {\n case \"openai\":\n return new ChatOpenAI({\n model: config.chatModel,\n temperature
|
|
1
|
+
export declare const llmFactoryTemplate = "import { ChatOpenAI, OpenAIEmbeddings } from \"@langchain/openai\";\nimport { ChatAnthropic } from \"@langchain/anthropic\";\nimport {\n ChatGoogleGenerativeAI,\n GoogleGenerativeAIEmbeddings,\n} from \"@langchain/google-genai\";\nimport type { LLMConfig } from \"@/services/llm/types\";\n\n/**\n * Creates a chat model instance based on the provider configuration\n */\nexport function createChatModel(config: LLMConfig) {\n // Some models reject the parameter outright, so it is sent only when set.\n const temperature =\n config.temperature === undefined ? {} : { temperature: config.temperature };\n switch (config.provider) {\n case \"openai\":\n return new ChatOpenAI({\n model: config.chatModel,\n ...temperature,\n });\n\n case \"anthropic\":\n return new ChatAnthropic({\n model: config.chatModel,\n ...temperature,\n });\n\n case \"google\":\n return new ChatGoogleGenerativeAI({\n model: config.chatModel,\n ...temperature,\n });\n\n default:\n throw new Error(`Unsupported LLM provider: ${config.provider}`);\n }\n}\n\n/**\n * Creates an embeddings instance based on the provider configuration\n * Note: Anthropic doesn't provide embeddings, so we fallback to OpenAI\n */\nexport function createEmbeddings(config: LLMConfig) {\n switch (config.provider) {\n case \"openai\":\n return new OpenAIEmbeddings({\n model: config.embeddingModel,\n });\n\n case \"google\":\n return new GoogleGenerativeAIEmbeddings({\n model: config.embeddingModel,\n });\n\n case \"anthropic\":\n // Anthropic doesn't have embeddings API\n // Fallback to OpenAI embeddings\n console.warn(\n \"Anthropic provider selected but no native embeddings available. Falling back to OpenAI embeddings.\",\n );\n return new OpenAIEmbeddings({\n model: config.embeddingModel,\n });\n\n default:\n throw new Error(\n `Unsupported LLM provider for embeddings: ${config.provider}`,\n );\n }\n}\n";
|
|
@@ -10,23 +10,26 @@ import type { LLMConfig } from "@/services/llm/types";
|
|
|
10
10
|
* Creates a chat model instance based on the provider configuration
|
|
11
11
|
*/
|
|
12
12
|
export function createChatModel(config: LLMConfig) {
|
|
13
|
+
// Some models reject the parameter outright, so it is sent only when set.
|
|
14
|
+
const temperature =
|
|
15
|
+
config.temperature === undefined ? {} : { temperature: config.temperature };
|
|
13
16
|
switch (config.provider) {
|
|
14
17
|
case "openai":
|
|
15
18
|
return new ChatOpenAI({
|
|
16
19
|
model: config.chatModel,
|
|
17
|
-
temperature
|
|
20
|
+
...temperature,
|
|
18
21
|
});
|
|
19
22
|
|
|
20
23
|
case "anthropic":
|
|
21
24
|
return new ChatAnthropic({
|
|
22
25
|
model: config.chatModel,
|
|
23
|
-
temperature
|
|
26
|
+
...temperature,
|
|
24
27
|
});
|
|
25
28
|
|
|
26
29
|
case "google":
|
|
27
30
|
return new ChatGoogleGenerativeAI({
|
|
28
31
|
model: config.chatModel,
|
|
29
|
-
temperature
|
|
32
|
+
...temperature,
|
|
30
33
|
});
|
|
31
34
|
|
|
32
35
|
default:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const llmTypesTemplate = "export type LLMProvider = \"openai\" | \"anthropic\" | \"google\";\n\nexport interface LLMConfig {\n provider: LLMProvider;\n chatModel: string;\n embeddingModel: string;\n embeddingDims: number;\n temperature
|
|
1
|
+
export declare const llmTypesTemplate = "export type LLMProvider = \"openai\" | \"anthropic\" | \"google\";\n\nexport interface LLMConfig {\n provider: LLMProvider;\n chatModel: string;\n embeddingModel: string;\n embeddingDims: number;\n /** Omitted when the model should use its own default. */\n temperature?: number;\n}\n\ninterface ProviderModels {\n chat: string;\n embedding: string;\n}\n\nexport type ProviderDefaults = Record<LLMProvider, ProviderModels>;\n";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "doccupine",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.160",
|
|
4
4
|
"description": "Free and open-source documentation platform. Write MDX, get a production-ready site with AI chat, built-in components, and an MCP server - in one command.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"engines": {
|
|
11
11
|
"node": ">=22.12.0"
|
|
12
12
|
},
|
|
13
|
-
"packageManager": "pnpm@12.
|
|
13
|
+
"packageManager": "pnpm@12.9.1",
|
|
14
14
|
"scripts": {
|
|
15
15
|
"clean": "node scripts/clean.mjs",
|
|
16
16
|
"build": "pnpm clean && tsc",
|
|
@@ -43,24 +43,24 @@
|
|
|
43
43
|
"license": "SEE LICENSE IN LICENSE",
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@readme/openapi-parser": "^9.0.0",
|
|
46
|
-
"chalk": "^6.0.
|
|
46
|
+
"chalk": "^6.0.1",
|
|
47
47
|
"chokidar": "^5.0.0",
|
|
48
48
|
"commander": "^15.0.0",
|
|
49
|
-
"fs-extra": "^11.4.
|
|
49
|
+
"fs-extra": "^11.4.1",
|
|
50
50
|
"gray-matter": "^4.0.3",
|
|
51
|
-
"lucide-react": "^1.
|
|
52
|
-
"next": "^16.3.
|
|
51
|
+
"lucide-react": "^1.52.0",
|
|
52
|
+
"next": "^16.3.8",
|
|
53
53
|
"prompts": "^2.4.2",
|
|
54
|
-
"react": "^19.
|
|
55
|
-
"react-dom": "^19.
|
|
54
|
+
"react": "^19.3.0",
|
|
55
|
+
"react-dom": "^19.3.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/fs-extra": "^11.0.4",
|
|
59
|
-
"@types/node": "^26.4
|
|
59
|
+
"@types/node": "^26.6.4",
|
|
60
60
|
"@types/prompts": "^2.4.9",
|
|
61
|
-
"prettier": "^3.9.
|
|
61
|
+
"prettier": "^3.9.9",
|
|
62
62
|
"typescript": "^7.0.2",
|
|
63
|
-
"vitest": "^5.0.
|
|
63
|
+
"vitest": "^5.0.3"
|
|
64
64
|
},
|
|
65
65
|
"files": [
|
|
66
66
|
"dist/**/*"
|