mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-06-23 21:00:30 +08:00
Co-Authored-By: Federico Aguzzi <62149513+f-aguzzi@users.noreply.github.com> Co-Authored-By: wangdongpeng1 <74647183+wangdongpeng1@users.noreply.github.com>
18 lines
408 B
Python
18 lines
408 B
Python
"""
|
|
OpenAI Module
|
|
"""
|
|
from langchain_openai import ChatOpenAI
|
|
|
|
|
|
class OneApi(ChatOpenAI):
|
|
"""
|
|
A wrapper for the OneApi 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)
|