Elffuss BraidHub

kikocis/continue public

Merge pull request #5818 from uinstinct/yaml-stream

feat: add `stream` in defaultCompletionOptions yaml
Changeset95c91a48de4e64f9ec18a96e81272a6d816488ceb3caf3205cee7f9bdb8563e5
AuthorNate Sesti <33237525+sestinj@users.noreply.github.com> · 2025-05-25 17:46 -07:00
CommitterGitHub <noreply@github.com> · 2025-05-25 17:46 -07:00
Parents54ea0739010d, 7aa6d9f92b99

Browse the files at this changeset

3 files changed

modified packages/config-yaml/src/__tests__/index.test.ts +5 −1
@@ -143,7 +143,7 @@
143143 );
144144
145145 // Test that packages were correctly unrolled and params replaced
146- expect(unrolledConfig.models?.length).toBe(3);
146+ expect(unrolledConfig.models?.length).toBe(4);
147147
148148 const openAiModel = unrolledConfig.models?.[0]!;
149149 expect(openAiModel.apiKey).toBe("sk-123");
@@ -163,6 +163,10 @@
163163 anthropicSecretLocation,
164164 );
165165
166+ const proxyOllamaModel = unrolledConfig.models?.[3]!;
167+ expect(proxyOllamaModel.provider).toBe('ollama')
168+ expect(proxyOllamaModel.defaultCompletionOptions?.stream).toBe(false);
169+
166170 expect(unrolledConfig.rules?.length).toBe(2);
167171 expect(unrolledConfig.docs?.[0]?.startUrl).toBe(
168172 "https://docs.python.org/release/3.13.1",
modified packages/config-yaml/src/__tests__/packages/test-org/assistant.yaml +6 −0
@@ -27,3 +27,9 @@
2727 - uses: test-org/claude35sonnet
2828 with:
2929 ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
30+
31+ - name: proxy-ollama
32+ provider: ollama
33+ model: llama3.1
34+ defaultCompletionOptions:
35+ stream: false
modified packages/config-yaml/src/schemas/models.ts +1 −0
@@ -50,6 +50,7 @@
5050 reasoning: z.boolean().optional(),
5151 reasoningBudgetTokens: z.number().optional(),
5252 promptCaching: z.boolean().optional(),
53+ stream: z.boolean().optional()
5354 });
5455 export type CompletionOptions = z.infer<typeof completionOptionsSchema>;
5556