Spaces:
Sleeping
Sleeping
Update server.js
Browse files
server.js
CHANGED
@@ -58,6 +58,11 @@ const start = `**Твоя задача**: Ты игра "Что бьёт?" (ка
|
|
58 |
|
59 |
{"whate":"❄️", "howe":"👨✈️", "succ":"н", "text":"Гитлер холоден, как лёд, но он не может победить сам холод!", "what":"Холод", "how":"Гитлер", "howl":"гитлера"}
|
60 |
|
|
|
|
|
|
|
|
|
|
|
61 |
|
62 |
---
|
63 |
|
@@ -94,9 +99,9 @@ app.post('/cr', async (req, res) => {
|
|
94 |
const response = await axios.post('https://geminiyufi.vercel.app/v1/chat/completions', {
|
95 |
messages: [{'role': 'system', 'content': start}, {'role': 'user', 'content': prompt}],
|
96 |
max_tokens: 2000,
|
97 |
-
temperature: 0.
|
98 |
presence_penalty: 0.0,
|
99 |
-
frequency_penalty:
|
100 |
model: "gemini-1.5-pro-latest",
|
101 |
}, {
|
102 |
headers: {
|
|
|
58 |
|
59 |
{"whate":"❄️", "howe":"👨✈️", "succ":"н", "text":"Гитлер холоден, как лёд, но он не может победить сам холод!", "what":"Холод", "how":"Гитлер", "howl":"гитлера"}
|
60 |
|
61 |
+
5. Пользователь: "Что: Негерия - Чем: США"
|
62 |
+
Ответ:
|
63 |
+
|
64 |
+
{"whate":"🇳🇬", "howe":"🇺🇸", "succ":"п", "text":"Слишком сильный противник! США быстро раздавили Негерию!", "what":"Негерия", "how":"США", "howl":"сша"}
|
65 |
+
|
66 |
|
67 |
---
|
68 |
|
|
|
99 |
const response = await axios.post('https://geminiyufi.vercel.app/v1/chat/completions', {
|
100 |
messages: [{'role': 'system', 'content': start}, {'role': 'user', 'content': prompt}],
|
101 |
max_tokens: 2000,
|
102 |
+
temperature: 0.6,
|
103 |
presence_penalty: 0.0,
|
104 |
+
frequency_penalty: 0.0,
|
105 |
model: "gemini-1.5-pro-latest",
|
106 |
}, {
|
107 |
headers: {
|