Erol444 / gpt4-openai-api

Python package that provides (unofficial) API access to the GPT-4 through chat.openai.com. Works with langchain. Supports browsing, DALL-E 3, plugins, continuing generation.
165 stars 38 forks source link

TypeError: Service.__init__() got an unexpected keyword argument 'log_output' #25

Open Waterkin opened 12 months ago

Waterkin commented 12 months ago

Following the demo script response = llm(prompt_text):

    860 if not isinstance(prompt, str):
    861     raise ValueError(
    862         "Argument `prompt` is expected to be a string. Instead found "
    863         f"{type(prompt)}. If you want to run the LLM on multiple prompts, use "
    864         "`generate` instead."
    865     )
    866 return (
--> 867     self.generate(
    868         [prompt],
    869         stop=stop,
    870         callbacks=callbacks,
    871         tags=tags,
    872         metadata=metadata,
    873         **kwargs,
    874     )
    875     .generations[0][0]
    876     .text
    877 )
...
     55     log_output=self.log_output,
     56     **kwargs,
     57 )

TypeError: Service.__init__() got an unexpected keyword argument 'log_output'