Azure genai fixes (#14103)

* Azure fixes

* clarify docs

* sublabels fix
This commit is contained in:
Josh Hawkins
2024-10-01 17:05:16 -05:00
committed by GitHub
parent b5f5627ca6
commit 849d441c5c
4 changed files with 13 additions and 6 deletions

View File

@@ -1,3 +1,10 @@
export const capitalizeFirstLetter = (text: string): string => {
return text.charAt(0).toUpperCase() + text.slice(1);
};
export const capitalizeAll = (text: string): string => {
return text
.split(" ")
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
.join(" ");
};