Skip to content

Commit 2752771

Browse files
fix(ollama): default unknown capabilities to tools
1 parent b7a44bf commit 2752771

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/labeler.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,7 @@ jobs:
760760
core.info(`Processed ${processed} pull requests.`);
761761
762762
label-issues:
763+
if: github.event_name == 'issues'
763764
permissions:
764765
issues: write
765766
runs-on: ubuntu-24.04

extensions/ollama/src/provider-models.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ describe("ollama provider models", () => {
4141
{ name: "llama3:8b", contextWindow: 65536, capabilities: undefined },
4242
{ name: "deepseek-r1:14b", contextWindow: undefined, capabilities: undefined },
4343
]);
44+
expect(
45+
buildOllamaModelDefinition(
46+
enriched[1].name,
47+
enriched[1].contextWindow,
48+
enriched[1].capabilities,
49+
).compat?.supportsTools,
50+
).toBe(true);
4451
});
4552

4653
it("uses Modelfile num_ctx when it expands the discovered context window", async () => {

0 commit comments

Comments
 (0)