Skip to content

relax: Add 11 popular ollama model name regex patterns for provider routing#329

Open
shokrydev wants to merge 1 commit intogoogle:mainfrom
shokrydev:feat/ollama-model-patterns
Open

relax: Add 11 popular ollama model name regex patterns for provider routing#329
shokrydev wants to merge 1 commit intogoogle:mainfrom
shokrydev:feat/ollama-model-patterns

Conversation

@shokrydev
Copy link
Copy Markdown

@shokrydev shokrydev commented Jan 27, 2026

Description

Add regex patterns for 11 popular Ollama model families: ministral, devstral, nemotron, granite, glm, rnj, olmo, smollm, lfm, falcon, yi. This enables users to use these models via the standard model_id API.

Fixes #328

Out of provided PR case selection, closest to "feature" but @aksg87 refers to similar changes as "relax".

How Has This Been Tested?

$ python -c "from langextract.providers import router; from langextract import providers; providers.load_builtins_once(); cls = router.resolve('ministral-3:8b'); print(f'Resolved to: {cls.__name__}')"

> Resolved to: OllamaLanguageModel

Checklist:

  • I have read and acknowledged Google's Open Source
    Code of conduct.
  • I have read the
    Contributing
    page, and I either signed the Google
    Individual CLA
    or am covered by my company's
    Corporate CLA.
  • I have discussed my proposed solution with code owners in the linked
    issue(s) and we have agreed upon the general approach.
  • I have made any needed documentation changes, or noted in the linked
    issue(s) that documentation elsewhere needs updating.
  • I have added tests, or I have ensured existing tests cover the changes
  • I have followed
    Google's Python Style Guide
    and ran pylint over the affected code.

…outing: ministral, devstral, nemotron, granite, glm, rnj, olmo, smollm, lfm, falcon, yi
@google-cla
Copy link
Copy Markdown

google-cla bot commented Jan 27, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions github-actions bot added the size/XS Pull request with less than 50 lines changed label Jan 27, 2026
IgnatG added a commit to IgnatG/langextract that referenced this pull request Feb 17, 2026
…uting

Adds patterns for: ministral, devstral, nemotron, granite, glm, rnj,
olmo, smollm, lfm, falcon, yi

Upstream: google#329
IgnatG added a commit to IgnatG/langextract that referenced this pull request Feb 17, 2026
Applied PRs: google#356, google#369, google#329, google#267, google#305, google#326, google#352, google#359, google#317, google#362,
google#242, google#310, google#241. Moved from Low Priority to Applied section. Updated
cherry-pick log with all commit hashes.
@github-actions
Copy link
Copy Markdown

⚠️ Branch Update Required

Your branch is 1 commits behind main. Please update your branch to ensure CI checks run with the latest code:

git fetch origin main
git merge origin/main
git push

Note: Enable "Allow edits by maintainers" to allow automatic updates.

3 similar comments
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 5, 2026

⚠️ Branch Update Required

Your branch is 1 commits behind main. Please update your branch to ensure CI checks run with the latest code:

git fetch origin main
git merge origin/main
git push

Note: Enable "Allow edits by maintainers" to allow automatic updates.

@github-actions
Copy link
Copy Markdown

⚠️ Branch Update Required

Your branch is 1 commits behind main. Please update your branch to ensure CI checks run with the latest code:

git fetch origin main
git merge origin/main
git push

Note: Enable "Allow edits by maintainers" to allow automatic updates.

@github-actions
Copy link
Copy Markdown

⚠️ Branch Update Required

Your branch is 1 commits behind main. Please update your branch to ensure CI checks run with the latest code:

git fetch origin main
git merge origin/main
git push

Note: Enable "Allow edits by maintainers" to allow automatic updates.

@github-actions
Copy link
Copy Markdown

⚠️ Branch Update Required

Your branch is 7 commits behind main. Please update your branch to ensure CI checks run with the latest code:

git fetch origin main
git merge origin/main
git push

Note: Enable "Allow edits by maintainers" to allow automatic updates.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

⚠️ Branch Update Required

Your branch is 8 commits behind main. Please update your branch to ensure CI checks run with the latest code:

git fetch origin main
git merge origin/main
git push

Note: Enable "Allow edits by maintainers" to allow automatic updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Pull request with less than 50 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

relax: Extend name regex patterns for provider routing by 11 popular local Ollama models

1 participant