Open marcwojcik opened 2 months ago
Pass language explicitly to:
/conversation/{conversation_id}/proposed-title
endpointpropose_conversation_title
PR merged but leave the issue still open because enough evidence was not provided on #247. Please leave your comment below if you have still same issue.
I got this error, even though my backend had the update (ie "- Title must be in the same language as the conversation.")
Maybe interpolate a preferred/default language in the parameter for the prompt string? ie
def propose_conversation_title(
user_id: str,
conversation_id: str,
language: str,
model: Literal[
"claude-instant-v1",
"claude-v2",
"claude-v3-opus",
"claude-v3-sonnet",
"claude-v3-haiku",
] = "claude-v3-haiku",
) -> str:
PROMPT = f"""Reading the conversation above, what is the appropriate title for the conversation? When answering the title, please follow the rules below:
<rules>
- Title must be in {language}.
- Title length must be from 15 to 20 characters.
- Prefer more specific title than general. Your title should always be distinct from others.
- Return the conversation title only. DO NOT include any strings other than the title.
</rules>
"""
@josephedward I believe your proposal is one of the simplest and effective ways to address the root cause. It would be greatly appreciated if you could take the trouble to create a Pull Request. Thank you!
Describe the bug
The Bedrock-Claude-Chat application is displaying the chat history in Spanish, despite the user selecting a different language (e.g., English) in the Menu settings.
To Reproduce
Open a new chat and the history will always come up default to Spanish.
Screenshots
Additional context
Add any other context about the problem here.