<commit_before>const platformClient = require('purecloud-platform-client-v2');
const fs = require('fs');
const request = require('request-promise');

// Get client credentials from environment variables
const PURECLOUD_CLIENT_ID = process.env.PURECLOUD_CLIENT_ID;
const PURECLOUD_CLIENT_SECRET = process.env.PURECLOUD_CLIENT_SECRET;

// Set purecloud objects
const client = platformClient.ApiClient.instance;
const architectApi = new platformClient.ArchitectApi();

// Set PureCloud settings
client.setEnvironment('mypurecloud.com');

// Authenticate with PureCloud
client.loginClientCredentialsGrant(PURECLOUD_CLIENT_ID, PURECLOUD_CLIENT_SECRET)
	.then(() => {
		console.log('Authenticated with PureCloud');

		// Create new prompt
		console.log('Creating new prompt...');
		return architectApi.postArchitectPrompts({ 
			body: {
				name: 'uploaded_prompt-',
				description: 'Prompt uploaded by upload-prompts example app'
			}
		});
	})
	.then((prompt) => {
		console.log(prompt);
<commit_msg>API-3455 removing extra character<commit_after>const platformClient = require('purecloud-platform-client-v2');
const fs = require('fs');
const request = require('request-promise');

// Get client credentials from environment variables
const PURECLOUD_CLIENT_ID = process.env.PURECLOUD_CLIENT_ID;
const PURECLOUD_CLIENT_SECRET = process.env.PURECLOUD_CLIENT_SECRET;

// Set purecloud objects
const client = platformClient.ApiClient.instance;
const architectApi = new platformClient.ArchitectApi();

// Set PureCloud settings
client.setEnvironment('mypurecloud.com');

// Authenticate with PureCloud
client.loginClientCredentialsGrant(PURECLOUD_CLIENT_ID, PURECLOUD_CLIENT_SECRET)
	.then(() => {
		console.log('Authenticated with PureCloud');

		// Create new prompt
		console.log('Creating new prompt...');
		return architectApi.postArchitectPrompts({ 
			body: {
				name: 'uploaded_prompt',
				description: 'Prompt uploaded by upload-prompts example app'
			}
		});
	})
	.then((prompt) => {
		console.log(prompt);

{'fraction_non_alphanumeric': 0.11525086934923001, 'fraction_numerical': 0.0029806259314456036, 'mean_word_length': 5.455128205128205, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6622012', 'n_tokens_mistral': 666, 'n_tokens_neox': 633, 'n_words': 131}