mirror of
https://github.com/MIDORIBIN/langchain-gpt4free.git
synced 2025-10-10 21:49:38 +03:00
@@ -1,4 +1,4 @@
|
||||
from g4f import Provider, Model
|
||||
from g4f import Provider, models
|
||||
from langchain.llms.base import LLM
|
||||
|
||||
from langchain_g4f import G4FLLM
|
||||
@@ -6,7 +6,7 @@ from langchain_g4f import G4FLLM
|
||||
|
||||
def main():
|
||||
llm: LLM = G4FLLM(
|
||||
model=Model.gpt_35_turbo,
|
||||
model=models.gpt_35_turbo,
|
||||
provider=Provider.Aichat,
|
||||
)
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
from g4f import Provider, Model
|
||||
from langchain.llms.base import LLM
|
||||
from g4f import Provider, models
|
||||
from langchain import PromptTemplate
|
||||
from langchain.llms.base import LLM
|
||||
|
||||
from langchain_g4f import G4FLLM
|
||||
|
||||
@@ -10,7 +10,7 @@ def main():
|
||||
prompt_template = PromptTemplate(template=template, input_variables=["fruit"])
|
||||
|
||||
llm: LLM = G4FLLM(
|
||||
model=Model.gpt_35_turbo,
|
||||
model=models.gpt_35_turbo,
|
||||
provider=Provider.Aichat,
|
||||
)
|
||||
|
||||
|
@@ -1,14 +1,14 @@
|
||||
from g4f import Provider, Model
|
||||
from langchain.llms.base import LLM
|
||||
from g4f import Provider, models
|
||||
from langchain import PromptTemplate
|
||||
from langchain.chains import LLMChain, SimpleSequentialChain
|
||||
from langchain.llms.base import LLM
|
||||
|
||||
from langchain_g4f import G4FLLM
|
||||
|
||||
|
||||
def main():
|
||||
llm: LLM = G4FLLM(
|
||||
model=Model.gpt_35_turbo,
|
||||
model=models.gpt_35_turbo,
|
||||
provider=Provider.DeepAi,
|
||||
)
|
||||
|
||||
|
@@ -1,14 +1,14 @@
|
||||
from g4f import Provider, Model
|
||||
from langchain.llms.base import LLM
|
||||
from g4f import Provider, models
|
||||
from langchain import PromptTemplate
|
||||
from langchain.chains import LLMChain
|
||||
from langchain.llms.base import LLM
|
||||
|
||||
from langchain_g4f import G4FLLM
|
||||
|
||||
|
||||
def main():
|
||||
llm: LLM = G4FLLM(
|
||||
model=Model.gpt_35_turbo,
|
||||
model=models.gpt_35_turbo,
|
||||
provider=Provider.Aichat,
|
||||
)
|
||||
prompt_template = PromptTemplate(
|
||||
|
Reference in New Issue
Block a user