langchain-gpt4free icon indicating copy to clipboard operation
langchain-gpt4free copied to clipboard

ValidationError: 3 validation errors for G4FLLM

Open wileewang opened this issue 1 year ago • 2 comments

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)

wileewang avatar Sep 13 '23 12:09 wileewang