GGLVXD
GGLVXD
Explore posts from servers
CDCloudflare Developers
Created by GGLVXD on 10/23/2023 in #workers-help
workers ai
so im having problem with the LLaMA ai so for some reason it doesnt listen to the prompts here is an example: [{"inputs":{"prompt":"what is python"}},{"inputs":{"response":"Hello! I'm LLaMA, an AI assistant developed by Meta AI that can understand and respond to human input in a conversational manner. I'm here to help you with any questions or topics you'd like to discuss. Is there something specific you'd like to talk about or ask?"}}] here is the code
import { Ai } from './vendor/@cloudflare/ai.js';

export default {
async fetch(request, env) {
const tasks = [];
const ai = new Ai(env.AI);

const url = new URL(request.url);
const query = url.searchParams.get('q');

let simple = {
prompt: query || 'Tell me a joke about Cloudflare'
};
let response = await ai.run('@cf/meta/llama-2-7b-chat-int8', simple);
tasks.push({ inputs: simple });

let chat = {
messages: [
{ role: 'system', content: 'you are an chatbot to chat with user' },
]
};
response = await ai.run('@cf/meta/llama-2-7b-chat-int8', chat);
tasks.push({ inputs: response });

return Response.json(tasks);
}
};
import { Ai } from './vendor/@cloudflare/ai.js';

export default {
async fetch(request, env) {
const tasks = [];
const ai = new Ai(env.AI);

const url = new URL(request.url);
const query = url.searchParams.get('q');

let simple = {
prompt: query || 'Tell me a joke about Cloudflare'
};
let response = await ai.run('@cf/meta/llama-2-7b-chat-int8', simple);
tasks.push({ inputs: simple });

let chat = {
messages: [
{ role: 'system', content: 'you are an chatbot to chat with user' },
]
};
response = await ai.run('@cf/meta/llama-2-7b-chat-int8', chat);
tasks.push({ inputs: response });

return Response.json(tasks);
}
};
4 replies
CDCloudflare Developers
Created by GGLVXD on 9/19/2023 in #pages-help
file limit
whats the amout of files i can upload to cl pages?
4 replies
CDCloudflare Developers
Created by GGLVXD on 9/2/2023 in #pages-help
does website go down?
so does the pages website will go down if the 100k request limit exceedes like i dont see any point of it go down because pages does no requests
5 replies
CDCloudflare Developers
Created by GGLVXD on 2/25/2023 in #pages-help
question about mysql and php requests
If i make php chatting application on cf pages will it use requests like sending a message to mysql db?
2 replies
CDCloudflare Developers
Created by GGLVXD on 1/25/2023 in #pages-help
Stuck at build project
Executing user command: next dev -p 8080 22:43:57.195 ready - started server on 0.0.0.0:8080, url: http://localhost:8080 22:43:57.523 info - Using webpack 5. Reason: future.webpack5 option enabled https://nextjs.org/docs/messages/webpack5 22:43:58.482 Browserslist: caniuse-lite is outdated. Please run: 22:43:58.482 npx browserslist@latest --update-db 22:43:58.482
22:43:58.483 Why you should do it regularly: 22:43:58.483 https://github.com/browserslist/browserslist#browsers-data-updating 22:43:59.162 Browserslist: caniuse-lite is outdated. Please run: 22:43:59.162 npx browserslist@latest --update-db 22:43:59.162
22:43:59.162 Why you should do it regularly: 22:43:59.163 https://github.com/browserslist/browserslist#browsers-data-updating 22:44:05.441 event - compiled successfully 22:44:05.746 Attention: Next.js now collects completely anonymous telemetry regarding usage. 22:44:05.746 This information is used to shape Next.js' roadmap and prioritize features. 22:44:05.747 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: 22:44:05.747 https://nextjs.org/telemetry 22:44:05.747
23:18:45.612 Failed: an internal error occurred Stuck at build project Acc id:ad6406e83f322c9cb6044fae10186898 Site:ggsearch.pages.dev Deployment id:couldnt find it
7 replies