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

Pick the first correspondent if search returns multiple #88

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

skius
Copy link

@skius skius commented Jan 10, 2025

Currently, no correspondent is picked (undefined, to be precise) if the API correspondent search returns multiple results. This change simply picks the first result.

An alternative fix would be to check if the AI generated correspondent exists as a 1:1 match, and if not, force create it instead of picking from the existing list. For my documents there are generally too many correspondents being created and not too few, so I opted for the option in this PR to avoid even more.

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

Successfully merging this pull request may close these issues.

1 participant