Skip to content

Extra fields not permitted from pydantic  #259

@kyocwn

Description

@kyocwn

Hi,

When I am running the following script:
python visual_chatgpt.py --load ImageCaptioning_cpu, Text2Image_cpu

I see some errors like follows:

Initializing VisualChatGPT, load_dict={'ImageCaptioning': 'cpu', 'Text2Image': 'cpu'}
Traceback (most recent call last):
File "visual_chatgpt.py", line 885, in
bot = ConversationBot(load_dict=load_dict)
File "visual_chatgpt.py", line 824, in init
self.memory = ConversationBufferMemory(memory_key="chat_history", output_key='output')
File "pydantic\main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for ConversationBufferMemory
output_key
extra fields not permitted (type=value_error.extra)

Can anyone help? What shall I do to fix this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions