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

Create new claim tool use default language not current one #401

Open
Lovenoreus opened this issue Jan 22, 2025 · 3 comments
Open

Create new claim tool use default language not current one #401

Lovenoreus opened this issue Jan 22, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@Lovenoreus
Copy link

Lovenoreus commented Jan 22, 2025

A call that continued a previous conversation changed to French as soon as I confirmed that I wanted to create a new claim

It created 2 identifcal errands in the /report overview

It uses the container version for the latest commit 40d003b

container_call_3_version-17-1-0.mp4

container_call_4.txt

Image

@Lovenoreus
Copy link
Author

I called a second time from a number that I had not used before in the /report overview and it switched to French very fast

As if this call I made was affected by previous calls I had placed from different numbers

@clemlesne
Copy link
Collaborator

clemlesne commented Jan 23, 2025

If I understand well:

  1. You called and selected English, with French was the default in the configuration
  2. You then asked to create a new claim, and the language reverted to French, which was the default.

It seems there is a bug in the language selection when creating a new claim. The default language seems to be selected, not the current.

Issue should be located here:

CallStateModel(
initiate=self.call.initiate.model_copy(),
voice_id=self.call.voice_id,
messages=[
# Reinsert the call action
MessageModel(
action=MessageActionEnum.CALL,
content="",
persona=MessagePersonaEnum.HUMAN,
),
# TODO: Should it be a reminder for the last conversation subject? It would allow to keep the context of the conversation. Keeping the last message in the history is felt as weird for users (see: https://github.com/microsoft/call-center-ai/issues/397).
],
)

@clemlesne clemlesne changed the title Second phone call switches to French after selecting English Create new claim tool use default language not current one Jan 23, 2025
@clemlesne clemlesne added the bug Something isn't working label Jan 23, 2025
@Lovenoreus
Copy link
Author

Yes that is a correct assumption, I selected 2 for English,the default language settings was French

I would assume that if the language option is saved as a variable that spans the full duration of the phone call this would be sufficient, so it does not associate a language with a specific claim, and when the first claimis over it switches back in the same call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants