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

Convoviz errors out on chats containing DALL-E images. #28

Open
zunzster opened this issue Nov 21, 2023 · 0 comments
Open

Convoviz errors out on chats containing DALL-E images. #28

zunzster opened this issue Nov 21, 2023 · 0 comments

Comments

@zunzster
Copy link

zunzster commented Nov 21, 2023

Convoviz errors out when it encountered a sole chat I had containing images from DALL-E.
Once I deleted that chat, it completed it's conversions.

Traceback (most recent call last):
File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Program Files\Python310\lib\site-packages\convoviz_main
.py", line 5, in
main()
File "C:\Program Files\Python310\lib\site-packages\convoviz\cli.py", line 38, in main
entire_collection = ConversationSet.from_zip(user.configs["zip_filepath"])
File "C:\Program Files\Python310\lib\site-packages\convoviz\models_conversation_set.py", line 55, in from_zip
return cls.from_json(convos_path)
File "C:\Program Files\Python310\lib\site-packages\convoviz\models_conversation_set.py", line 47, in from_json
return cls(array=loads(file.read()))
File "C:\Program Files\Python310\lib\site-packages\pydantic\main.py", line 164, in init
pydantic_self.pydantic_validator.validate_python(data, self_instance=pydantic_self)
pydantic_core._pydantic_core.ValidationError: 45 validation errors for ConversationSet
array.1.mapping.4d7b02ae-cd9e-47de-82d3-4981ecffc4e1.message.content.parts.0
Input should be a valid string [type=string_type, input_value={'content_type': 'image_a... generation metadata'}}}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.5/v/string_type

yb66 added a commit to yb66/chatgpt-history-export-to-md that referenced this issue Jan 17, 2024
…chs#29.

However, this doesn't actually handle the case where a dictionary is returned (e.g. when DALL-E images are involved), it just ignores them and preserves the old interface.
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

1 participant