Changesets · Branches · Tags · Compare
| Changeset | b96e75bd23b88a627275d2e664d080c11a5e8d45f6cdd9361b7ce62a473cd5b0 |
|---|---|
| Author | Tobias Kulmburg <t.kulmburg@netconomy.net> · 2025-05-14 22:13 +02:00 |
| Committer | Tobias Kulmburg <t.kulmburg@netconomy.net> · 2025-05-14 22:13 +02:00 |
| Parents | cfbd8cf979f7 |
4 files changed
modified core/config/util.ts +1 −0
| @@ -77,6 +77,7 @@ | ||
| 77 | 77 | model: model.model, |
| 78 | 78 | apiKey: model.apiKey, |
| 79 | 79 | apiBase: model.apiBase, |
| 80 | + maxStopWords: model.maxStopWords, | |
| 80 | 81 | defaultCompletionOptions: model.completionOptions, |
| 81 | 82 | }; |
| 82 | 83 | if (model.systemMessage) { |
modified core/control-plane/schema.ts +1 −0
| @@ -26,6 +26,7 @@ | ||
| 26 | 26 | apiKey: z.string().optional(), |
| 27 | 27 | apiBase: z.string().optional(), |
| 28 | 28 | contextLength: z.number().optional(), |
| 29 | + maxStopWords: z.number().optional(), | |
| 29 | 30 | template: z |
| 30 | 31 | .enum([ |
| 31 | 32 | "llama2", |
modified docs/docs/reference.md +1 −0
| @@ -188,6 +188,7 @@ | ||
| 188 | 188 | not currently used. |
| 189 | 189 | - `capabilities`: Array of strings denoting model capabilities, which will overwrite Continue's autodetection based on |
| 190 | 190 | provider and model. Supported capabilities include `tool_use` and `image_input`. |
| 191 | +- `maxStopWords`: Maximum number of stop words allowed, to avoid API errors with extensive lists. | |
| 191 | 192 | - `promptTemplates`: Can be used to override the default prompt templates for different model roles. Valid values are |
| 192 | 193 | `chat`, [`edit`](./customize/model-roles/edit.mdx#prompt-templating), [ |
| 193 | 194 | `apply`](./customize/model-roles/apply.mdx#prompt-templating) and [ |
modified packages/config-yaml/src/schemas/models.ts +2 −1
| @@ -107,7 +107,7 @@ | ||
| 107 | 107 | const promptTemplatesSchema = z.object({ |
| 108 | 108 | apply: z.string().optional(), |
| 109 | 109 | chat: templateSchema.optional(), |
| 110 | - edit: z.string().optional(), | |
| 110 | + edit: z.string().optional(), | |
| 111 | 111 | autocomplete: z.string().optional(), |
| 112 | 112 | }); |
| 113 | 113 | export type PromptTemplates = z.infer<typeof promptTemplatesSchema>; |
| @@ -117,6 +117,7 @@ | ||
| 117 | 117 | model: z.string(), |
| 118 | 118 | apiKey: z.string().optional(), |
| 119 | 119 | apiBase: z.string().optional(), |
| 120 | + maxStopWords: z.number().optional(), | |
| 120 | 121 | roles: modelRolesSchema.array().optional(), |
| 121 | 122 | capabilities: modelCapabilitySchema.array().optional(), |
| 122 | 123 | defaultCompletionOptions: completionOptionsSchema.optional(), |