Scrapegraph-ai/scrapegraphai/models/ollama.py
2024-05-01 23:33:42 +02:00

18 lines
427 B
Python

"""
Ollama Module
"""
from langchain_community.chat_models import ChatOllama
class Ollama(ChatOllama):
"""
A wrapper for the ChatOllama class that provides default configuration
and could be extended with additional methods if needed.
Args:
llm_config (dict): Configuration parameters for the language model.
"""
def __init__(self, llm_config: dict):
super().__init__(**llm_config)