Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValidationError: 3 validation errors for G4FLLM #7

Open
wileewang opened this issue Sep 13, 2023 · 2 comments
Open

ValidationError: 3 validation errors for G4FLLM #7

wileewang opened this issue Sep 13, 2023 · 2 comments

Comments

@wileewang
Copy link

wileewang commented Sep 13, 2023

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()

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)

@MIDORIBIN
Copy link
Owner

@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.

@Yusufibin
Copy link

@MIDORIBIN It's always the same

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

No branches or pull requests

3 participants