Spaces:
Configuration error
Configuration error
Lee Thanh
commited on
Commit
•
57ca32c
1
Parent(s):
5641073
Update index.js
Browse files
index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
const TelegramBot = require('node-telegram-bot-api');
|
2 |
const axios = require('axios');
|
3 |
|
4 |
-
const telegramToken = '
|
5 |
const cloudflareToken = 'NB-sxyNA3JSyhezy2fUnTnXc3Pf7i8X17BJfBwLx';
|
6 |
|
7 |
const bot = new TelegramBot(telegramToken, {polling: true});
|
@@ -12,7 +12,7 @@ bot.on('message', (msg) => {
|
|
12 |
const chatId = msg.chat.id;
|
13 |
const userMessage = msg.text;
|
14 |
|
15 |
-
axios.post('https://api.cloudflare.com/client/v4/accounts/d888e02cee618e93b19cd9e7717da715/ai/run/@cf/
|
16 |
prompt: userMessage
|
17 |
}, {
|
18 |
headers: {
|
|
|
1 |
const TelegramBot = require('node-telegram-bot-api');
|
2 |
const axios = require('axios');
|
3 |
|
4 |
+
const telegramToken = '6935550366:AAFCn08aHQFBQxjQSfYCnbyxyzc5mZCKg9I';
|
5 |
const cloudflareToken = 'NB-sxyNA3JSyhezy2fUnTnXc3Pf7i8X17BJfBwLx';
|
6 |
|
7 |
const bot = new TelegramBot(telegramToken, {polling: true});
|
|
|
12 |
const chatId = msg.chat.id;
|
13 |
const userMessage = msg.text;
|
14 |
|
15 |
+
axios.post('https://api.cloudflare.com/client/v4/accounts/d888e02cee618e93b19cd9e7717da715/ai/run/@cf/mistral/mistral-7b-instruct-v0.1', {
|
16 |
prompt: userMessage
|
17 |
}, {
|
18 |
headers: {
|