You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from g4f import Provider, models
from langchain.llms.base import LLM
from langchain_g4f import G4FLLM
def main():
llm: LLM = G4FLLM(
model=models.gpt_35_turbo,
provider=Provider.Aichat,
)
res = llm("hello")
print(res) # Hello! How can I assist you today?
main()
ValidationError: 3 validation errors for G4FLLM
model -> best_provider
subclass of BaseProvider expected (type=type_error.subclass; expected_class=BaseProvider)
model -> best_provider
wrong tuple length 12, expected 1 (type=value_error.tuple.length; actual_length=12; expected_length=1)
model
str type expected (type=type_error.str)
The text was updated successfully, but these errors were encountered:
@wileewang
Thanks for the report.
We have confirmed that the problem you reported occurs.
However, due to the gpt4free issue, we are unable to address it from this repository.
Please wait for me to submit a pull request to gpt4free.
I will let you know when it is resolved.
running script:
from g4f import Provider, models
from langchain.llms.base import LLM
from langchain_g4f import G4FLLM
def main():
llm: LLM = G4FLLM(
model=models.gpt_35_turbo,
provider=Provider.Aichat,
)
res = llm("hello")
print(res) # Hello! How can I assist you today?
main()
The text was updated successfully, but these errors were encountered: