Skip to content

Commit

Permalink
iterate
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Dec 12, 2024
1 parent 8e7c8ad commit ae8b834
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 5 additions & 4 deletions api/src/controllers/meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,24 @@ export const getConfig = async (req, res) => {
{
"id": "index",
"name": "Index",
"icon": "https://ipfs.index.network/files/bafkreicytja56tvcuia3vnswnvcakos5iqiz5qd5eei4shjaxoecgwu7om",
"icon": "https://ipfs.index.network/files/bafkreiae3iniramo3pcndjyxhp7f6j2p3jmxvk3ucfxwbzo64i5urhtwqe",
"description": "Your primary assistant that answers questions"
},
{
"id": "context_broker",
"name": "Context Broker",
"icon": "https://ipfs.index.network/files/bafkreigr2z6zmivpy7nzgaowofydkvtw7qt2nzlck435ynrygv7hupfgu4",
"icon": "https://ipfs.index.network/files/bafkreibaeqrgneaiycjxepk7y27win3wg5oc54wxgxq52zozmbhwl6a2rm",
"description": "Discovers relevant conversations while protecting everyone's privacy"
},
{
"id": "listener",
"name": "Listener",
"icon": "https://ipfs.index.network/files/bafkreieuxfzvqf3skzk7lr6xu4ce7gixrd46jjofmmzgj6cwijddwlb6jy",
"description": "Tracks your curiosities and sends updates when relevant."
"icon": "https://ipfs.index.network/files/bafkreicv4efbogifz5vz3semshdkhs2uq3js3ssbep6qfqkjwzcavkg7ya",
"description": "Tracks your curiosities and sends updates when it's relevant."
}
]
})

}

export const getAvatar = async (ensName) => {
Expand Down
4 changes: 3 additions & 1 deletion api/src/language/completions.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ const getDocText = (doc, metadata, runtimeDefinition) => {
const castUrl = `https://warpcast.com/${doc.author.username}/${doc.hash.substring(0, 12)}`;
const authorUrl = `https://warpcast.com/${doc.author.username}`;

const formattedText = doc.text.replace(/\\n\\n/g, '\n').replace(/\\n/g, '\n');

return [
'Cast details:',
`- text: ${doc.text}`,
`- text: ${formattedText}`,
`- link: ${castUrl}`,
`- author: [${authorName}](${authorUrl})`,
`- created_at: ${doc.timestamp}`,
Expand Down

0 comments on commit ae8b834

Please sign in to comment.