Skip to content

Commit cefdfac

Browse files
authored
Merge pull request #193 from BuildFire/fix-dicebear-api
fix(avatar): replace old dicebear api with new one
2 parents fad6af6 + 9d4f30f commit cefdfac

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

control/content/js/aiStateSeederManager.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ const aiStateSeederManager = {
4040
userMessage:
4141
'Generate a sample list of contacts for people working in the field of [business-type]',
4242
systemMessage:
43-
'Each contact should have a first name, last name, phone number, avatar in png format, bio, position, rank is item order number starting from zero, and email. Use https://avatars.dicebear.com/api/avataaars/ to generate useable avatar URLs, bio as HTML content, and for first name and last name use gender-neutral names, rank must be type number',
43+
'Each contact should have a first name, last name, phone number, avatar in png format, bio, position, rank is item order number starting from zero, and email. Use https://api.dicebear.com/8.x/avataaars/png to generate useable avatar URLs, bio as HTML content, and for first name and last name use gender-neutral names, rank must be type number',
4444
jsonTemplate: this.jsonTemplate,
4545
callback: this._handleGenerate.bind(this),
4646
},
4747

4848
importOptions: {
4949
jsonTemplate: this.jsonTemplate,
5050
sampleCSV:
51-
'Jane, Smith, 123-456-7890, https://avatars.dicebear.com/api/avataaars/jane-smith.png?mouth=smile&eyebrows=defaultNatural&eyes=default,<p>Jane Smith is a marketing specialist with expertise in digital marketing strategies.</p>,Marketing Specialist,Jane.Smith@example.com\nJohn, Doe, 123-456-7890, https://avatars.dicebear.com/api/avataaars/john-doe.png?mouth=smile&eyebrows=defaultNatural&eyes=default,<p>John Doe is a software engineer with 5 years of experience in web development.</p>,Software Engineer,john.doe@example.com',
51+
'Jane, Smith, 123-456-7890, https://api.dicebear.com/8.x/avataaars/png?seed=jane-smith&mouth=smile&eyebrows=defaultNatural&eyes=default,<p>Jane Smith is a marketing specialist with expertise in digital marketing strategies.</p>,Marketing Specialist,Jane.Smith@example.com\nJohn, Doe, 123-456-7890, https://api.dicebear.com/8.x/avataaars/png?seed=john-doe&mouth=smile&eyebrows=defaultNatural&eyes=default,<p>John Doe is a software engineer with 5 years of experience in web development.</p>,Software Engineer,john.doe@example.com',
5252
systemMessage: `fName is first , last name is lname, phone is random phone numbers, topImage is a URL`,
5353
callback: this._handleImport.bind(this),
5454
},
@@ -185,7 +185,7 @@ const aiStateSeederManager = {
185185
item.fName = item.fName || 'N/A';
186186
item.lName = item.lName || '';
187187
item.phone = item.phone || 'N/A';
188-
item.topImage = item.topImage || `https://api.dicebear.com/6.x/initials/png?seed=${item.fName}%20${item.lName}&backgroundColor=808080`;
188+
item.topImage = item.topImage || `https://api.dicebear.com/8.x/initials/png?seed=${item.fName}%20${item.lName}&backgroundColor=808080`;
189189
item.bodyContent = item.bodyContent || 'N/A';
190190
item.position = item.position || 'N/A';
191191
item.email = item.email || 'N/A';

0 commit comments

Comments
 (0)