dimagi / open-chat-studio

A web based platform for building Chatbots backed by Large Language Models
BSD 3-Clause "New" or "Revised" License
16 stars 7 forks source link

File creation refactor #882

Closed snopoke closed 1 week ago

snopoke commented 1 week ago

Description

Refactor file creation from external sources to get more consistency and to check for existing files.

Duplicate files thoughts

We are still going to have duplicate files because when we create a new version of an assistant we duplicate the attached files. One option would be to clear out the 'external_id' on the file when we duplicate it. This would force us to re-upload the file to OpenAI which would assign it a new file ID. Thoughts?

codecov-commenter commented 1 week ago

Codecov Report

Attention: Patch coverage is 69.23077% with 8 lines in your changes missing coverage. Please review.

:white_check_mark: All tests successful. No failed tests found.

Files with missing lines Patch % Lines
apps/files/models.py 61.11% 7 Missing :warning:
apps/assistants/sync.py 50.00% 1 Missing :warning:
Additional details and impacted files

:loudspeaker: Thoughts on this report? Let us know!


🚨 Try these New Features: