Skip to content

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

Merged
chakravarthik27 merged 3 commits intorelease/2.6.0from
feature/templatic-augmentation-supports-the-ollama-provider
Feb 26, 2025
Merged

feat: add support for generating templates using Ollama provider#1180
chakravarthik27 merged 3 commits intorelease/2.6.0from
feature/templatic-augmentation-supports-the-ollama-provider

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 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
@chakravarthik27 chakravarthik27 deleted the feature/templatic-augmentation-supports-the-ollama-provider branch March 12, 2025 06:06
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

3 participants