Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for generating templates using Ollama provider #1180

Conversation

chakravarthik27
Copy link
Collaborator

@chakravarthik27 chakravarthik27 commented Feb 25, 2025

This pull request adds support for generating templates using the Ollama API in the langtest package. The changes include adding a new function to handle template generation with Ollama, updating the template generation logic to include the new provider, and making minor adjustments to existing functions.

Key changes:

  • Support for Ollama API:

    • Added generate_templates_ollama function to langtest/augmentation/utils.py to handle template generation using the Ollama API.
    • Updated __generate_templates function in langtest/augmentation/base.py to include the Ollama provider. [1] [2]
  • Minor adjustments to existing functions:

    • Modified generate_templates_azoi and generate_templates_openai functions to remove the "model" key from model_config if it exists. [1] [2]

Issues:

@chakravarthik27 chakravarthik27 self-assigned this Feb 25, 2025
@chakravarthik27 chakravarthik27 linked an issue Feb 25, 2025 that may be closed by this pull request
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

@chakravarthik27 chakravarthik27 merged commit 4be9c0e into release/2.6.0 Feb 26, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Templatic Augmentation Supports the Ollama Provider
2 participants