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

Feature/epmgcip 189 #23

Merged
merged 5 commits into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ai-communication-app/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
REACT_APP_AI_TRANSLATE_FUNCTION_URL=https://museum-fnapp-staging.azurewebsites.net/api/translate_http_trigger
REACT_APP_AI_TRANSLATE_FUNCTION_CODE=-ULtspVIlFKh61UjP4UxOYqiwN94KS0g_MWjpLafVDIsAzFu1j3bvQ%3D%3D
2 changes: 1 addition & 1 deletion ai-communication-app/src/LanguagesEnum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ enum LanguagesEnum {
English = 'En',
Russian = 'Ru',
Uzbek = 'Uz',
Karakalpak = 'Kaa'
Karakalpak = 'Ka'
}

export default LanguagesEnum;
7 changes: 6 additions & 1 deletion ai-communication-app/src/locations/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ const Field: React.FC = () => {
}
)
.then((response) => response.json())
.then((response) => ({ lang, text: response["LLM Response"] }))
.then((response) => ({
lang,
text: response["LLM Response"]
.replace("```html\n", "")
.replace("\n```", ""),
}))
)
);

Expand Down