I want to make complete AI with responseive must use daisy ui, tailwind css and use black main color. And use inter font, my ai name is Stromgo, and after logo name add small text made by kaiiddo. Make two parts, left and Right side. Left side in top show brand name, after show histry and in last of left side show user profile icon with name, logo, premium account plan name and version. And right side show chat, i have user message show in right side and ai response shoe in left side. Please add input box for writing questions to ai. Make sure add attech icon in left side of input box and Right side show send icon. Whole of right and left side box after at footer show this text only in center of bottom with snall text Stromgo AI cab mistake, so double check it. Make sure when ai response first show loading animations after show answer. Show action bar after ai response of bottom like icons with text: like, dislike, regenerate and feedback. Please use api in backed for response. Please check if ai response any code or souce code show code box also in ai response chat with copy icons. Here api code "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" and document of api usage : fetch("https://openrouter.ai/api/v1/chat/completions", {
method: "POST",
headers: {
"Authorization": "Bearer <OPENROUTER_API_KEY>",
"HTTP-Referer": "<YOUR_SITE_URL>", // Optional. Site URL for rankings on openrouter.ai.
"X-Title": "<YOUR_SITE_NAME>", // Optional. Site title for rankings on openrouter.ai.
"Content-Type": "application/json"
},
body: JSON.stringify({
"model": "nvidia/llama-3.1-nemotron-70b-instruct:free",
"messages": [
{
"role": "user",
"content": "What is the meaning of life?"
}
]
})
});
Comments
Post a Comment