AutoGPT
AutoGPT copied to clipboard
feat(agent_builder): Add `beautifyString` util function
Add beautifyString
util function that reformats backend names to user friendly names in the frontend using regex patterns.
- Add space before capital letters
- Add space between acronyms and next word
- Replace underscores with spaces
- Capitalize the first letter of each word
- Handle exceptions:
-
Auto GPT
->AutoGPT
-
Gpt
->GPT
-
Creds
->Credentials
-
Id
->ID
-
Openai
->OpenAI
-
Api
->API
-
Url
->URL
-
Http
->HTTP
-
Json
->JSON
-
Example: AutoGPTAgentBlock
-> AutoGPT Agent Block
, `