KayJs
KayJs
CC#
Created by KayJs on 9/19/2023 in #help
❔ win form app desinger app erorr
14 replies
CC#
Created by KayJs on 9/14/2023 in #help
❔ What is problem?
Where do I need to enter it then?
70 replies
CC#
Created by KayJs on 9/14/2023 in #help
❔ What is problem?
let data = {
messages: [
{
"role": "admin", "content": "Senin ismin Kedi. Siz Konuşmalarınızda her zaman miyav yazan bir yapay zekasınız"
},
{
"role": "user",
"content": "selam nasılsın!"
}
],
model: "b2-heavy",
}

let axios = require('axios')

axios("https://cluster-2.pudochu.repl.co/api/genesis", {
"data": data,
"method": "POST"
}).then(c => c.data).then(c => console.log(c.text))
let data = {
messages: [
{
"role": "admin", "content": "Senin ismin Kedi. Siz Konuşmalarınızda her zaman miyav yazan bir yapay zekasınız"
},
{
"role": "user",
"content": "selam nasılsın!"
}
],
model: "b2-heavy",
}

let axios = require('axios')

axios("https://cluster-2.pudochu.repl.co/api/genesis", {
"data": data,
"method": "POST"
}).then(c => c.data).then(c => console.log(c.text))
70 replies
CC#
Created by KayJs on 9/14/2023 in #help
❔ What is problem?
example proggaming languege is JavaScript
70 replies
CC#
Created by KayJs on 9/14/2023 in #help
❔ What is problem?
question answer
70 replies
CC#
Created by KayJs on 9/14/2023 in #help
❔ What is problem?
hmm
70 replies
CC#
Created by KayJs on 9/14/2023 in #help
❔ What is problem?
okey
70 replies
CC#
Created by KayJs on 9/14/2023 in #help
❔ What is problem?
@pobiega
70 replies
CC#
Created by KayJs on 9/14/2023 in #help
❔ What is problem?
@angius he said bad json connection
70 replies
CC#
Created by KayJs on 9/14/2023 in #help
❔ What is problem?
@ZZZZZZZZZZZZZZZZZZZZZZZZZ or bad json connection?
70 replies
CC#
Created by KayJs on 9/14/2023 in #help
❔ What is problem?
oke
70 replies
CC#
Created by KayJs on 9/14/2023 in #help
❔ What is problem?
or .net version?
70 replies
CC#
Created by KayJs on 9/14/2023 in #help
❔ What is problem?
@ZZZZZZZZZZZZZZZZZZZZZZZZZ
70 replies
CC#
Created by KayJs on 9/14/2023 in #help
❔ What is problem?
using System;
using System.Net.Http;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Net.Http.Json; // Uzantı kitaplığı

namespace GenesisAPIFormApplication
{
public partial class Form1 : Form
{
private string apiUrl = "https://cluster-2.pudochu.repl.co/api/genesis";
private HttpClient httpClient = new HttpClient();

public Form1()
{
InitializeComponent();
}

private async void button1_Click(object sender, EventArgs e)
{
// Sabit bir metin kullanarak API'ye metin gönderme işlemi
string prompt = "Senin adın Jarvis. Her şeyi bilen üstün bir yapay zekasın.\n\nBen: selam\nJarvis:";

try
{
var response = await httpClient.PostAsJsonAsync(apiUrl, new { prompt = prompt, model = "text-dream-001" });

if (response.IsSuccessStatusCode)
{
var responseString = await response.Content.ReadAsStringAsync();
MessageBox.Show(responseString);
}
else
{
MessageBox.Show($"HTTP Hata Kodu: {response.StatusCode}");
// HTTP hata kodunu burada işleyebilirsiniz.
}
}
catch (Exception ex)
{
MessageBox.Show("İstek gönderilirken bir hata meydana geldi: " + ex.Message);
}
}
}
}
using System;
using System.Net.Http;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Net.Http.Json; // Uzantı kitaplığı

namespace GenesisAPIFormApplication
{
public partial class Form1 : Form
{
private string apiUrl = "https://cluster-2.pudochu.repl.co/api/genesis";
private HttpClient httpClient = new HttpClient();

public Form1()
{
InitializeComponent();
}

private async void button1_Click(object sender, EventArgs e)
{
// Sabit bir metin kullanarak API'ye metin gönderme işlemi
string prompt = "Senin adın Jarvis. Her şeyi bilen üstün bir yapay zekasın.\n\nBen: selam\nJarvis:";

try
{
var response = await httpClient.PostAsJsonAsync(apiUrl, new { prompt = prompt, model = "text-dream-001" });

if (response.IsSuccessStatusCode)
{
var responseString = await response.Content.ReadAsStringAsync();
MessageBox.Show(responseString);
}
else
{
MessageBox.Show($"HTTP Hata Kodu: {response.StatusCode}");
// HTTP hata kodunu burada işleyebilirsiniz.
}
}
catch (Exception ex)
{
MessageBox.Show("İstek gönderilirken bir hata meydana geldi: " + ex.Message);
}
}
}
}
70 replies
CC#
Created by KayJs on 9/14/2023 in #help
❔ What is problem?
using System; using System.Net.Http; using System.Threading.Tasks; using System.Windows.Forms; using System.Net.Http.Json; // Uzantı kitaplığı namespace GenesisAPIFormApplication { public partial class Form1 : Form { private string apiUrl = "https://cluster-2.pudochu.repl.co/api/genesis"; private HttpClient httpClient = new HttpClient(); public Form1() { InitializeComponent(); } private async void button1_Click(object sender, EventArgs e) { // Sabit bir metin kullanarak API'ye metin gönderme işlemi string prompt = "Senin adın Jarvis. Her şeyi bilen üstün bir yapay zekasın.\n\nBen: selam\nJarvis:"; try { var response = await httpClient.PostAsJsonAsync(apiUrl, new { prompt = prompt, model = "text-dream-001" }); if (response.IsSuccessStatusCode) { var responseString = await response.Content.ReadAsStringAsync(); MessageBox.Show(responseString); } else { MessageBox.Show($"HTTP Hata Kodu: {response.StatusCode}"); // HTTP hata kodunu burada işleyebilirsiniz. } } catch (Exception ex) { MessageBox.Show("İstek gönderilirken bir hata meydana geldi: " + ex.Message); } } } }
70 replies
CC#
Created by KayJs on 9/14/2023 in #help
❔ What is problem?
70 replies
CC#
Created by KayJs on 9/14/2023 in #help
❔ What is problem?
thanks
70 replies
CC#
Created by KayJs on 9/14/2023 in #help
❔ What is problem?
how?
70 replies
CC#
Created by KayJs on 9/14/2023 in #help
❔ What is problem?
ı am how to fix the problem (my english bad sorry :D)
70 replies
CC#
Created by KayJs on 9/14/2023 in #help
❔ What is problem?
@ZZZZZZZZZZZZZZZZZZZZZZZZZ
70 replies