Don't use for Cloudflare Worker page, use simple node.js only
Hm now bot send keybord buttons perfectly. When user click or send "🤖 Available Bots" then send message "Currently we have this all premium models for FREE! Chose any below" after send Inline buttons one line show 2 buttons after new line: "claude-3-5-sonnet-20240620 and claude-3-5-sonnet", "DeepSeek-R1-Distill-Qwen-32B and deepseek-v3", "gpt-4o-2024-05-13 and Meta-Llama-3.3-70B-Instruct-Turbo", "deepseek-r1" use Emoji also with inline buttons. Use bot emoji.
When user in Avilable Bots inside then show keyboard button also called Back. When user click then send user to back dashboard of welcome message. I hoped you under. When user click any ai agent model's then send message with bold text with emojis "Please wait login..." Create one more files for add my all the au model like Avilable Bots, BETA models, more bots, create each file. Make Evy blank, only currently work in "Avilable bots model" you want to use in backend DDC api document "import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://api.sree.shop/v1',
apiKey: 'ddc-wYpr03JBAZi93ja9deIHrNDTEtUAJSRVPiJR5be6p8lWrdVDEg' // Replace with your API key
});
const response = await client.chat.completions.create({
model: 'gpt-4',
messages: [
{ role: 'user', content: 'Hello!' }
]
});
console.log(response.choices[0].message.content);" acording like this make for my all the available bot model, user get response from here. After some times show "Please wait login..." After delete and removed this message, and show that model bot welcome message show to user. When user use any bot sucessful make always show back button. When again user click then send them to welcome dashboard.
When user click or send "🤖 Available Bots" then show keyboard back button. Need bold text login message. When user login any bot model then show exit keyboard button. I hope you understand when user click the. Send to "🤖 Available Bots" section. When user login any bot then make sure make start conversation that model bot which i provide. And user can ask any questions bot will be reply as response. When user click pn exit button then stop they conversion and exit foucs. In response don't show text "Response" label in every message which user response. Use Typing Action after show bot response.
https://colab.research.google.com/drive/1WP2jJaI6YrCzrCL9m3AoyneU8XnwfPk_
Please make sure use model also in Avilable bots, in the api have model also use bot name in model also. Give every bot, Model name. And if got error message of RPM, so display in message like "It look like RPM limit of 3, please check back after {Secound} " 3RPM/60 Secounds. Make update message of RPM limit.
Make big changes, use Curl method for model bot list, and which bot Model selected by user start conversation which that bot and that spacify model. here is full example code "" and use bold text for "*" if Found "**" acording use for all formats. I always happy that you understand!
Update both file, I select Llama 3, but when i send message "Who are you and who made you?" Then chatGPT will be answering. I am chatgpt.... Please fix this issues, user select that spacify any model then start they conversion with that spacify model which user Selected. And i hope you understand. And in the ai response found any code so display that code by ```code``` use for code box, also ai response have "**" for Bold so use instead "*"
Comments
Post a Comment