<?xml version="1.0" encoding="iso-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Clomosy | Forum : TClOpenAIEngien Gemini soru sorma ve cevap alam</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : TClOpenAIEngien Gemini soru sorma ve cevap alam]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 01 May 2026 19:24:12 +0000</pubDate>
  <lastBuildDate>Thu, 21 Nov 2024 17:00:49 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.clomosy.com.tr/RSS_post_feed.asp?TID=964</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Clomosy | Forum]]></title>
   <url>https://forum.clomosy.com.tr/forum_images/logo.png</url>
   <link>https://forum.clomosy.com.tr/</link>
  </image>
  <item>
   <title><![CDATA[TClOpenAIEngien Gemini soru sorma ve cevap alam : Merhaba Ya&#351;ar,API endpointi ve...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=964&amp;PID=1906#1906</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=142">BilalCndn</a><br /><strong>Konu:</strong> 964<br /><strong>Gönderim Zamanı:</strong> 21&nbsp;Kasım&nbsp;2024 Saat 17:00<br /><br />Merhaba Yaşar,<div><br></div><div>API endpointi ve Body hatalı. Gemini API ı hakkında bilgi almak için&nbsp;<a href="https://aistudio.google.com/" target="_blank" rel="nofollow">https://aistudio.google.com/</a>&nbsp;adresini inceleyebilirsin.</div><div><br></div><div>İyi çalışmalar dilerim.</div>]]>
   </description>
   <pubDate>Thu, 21 Nov 2024 17:00:49 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=964&amp;PID=1906#1906</guid>
  </item> 
  <item>
   <title><![CDATA[TClOpenAIEngien Gemini soru sorma ve cevap alam : var Form1: TclForm; clRest: TCLRest;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=964&amp;PID=1904#1904</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=246">yasar</a><br /><strong>Konu:</strong> 964<br /><strong>Gönderim Zamanı:</strong> 21&nbsp;Kasım&nbsp;2024 Saat 15:53<br /><br /><div>var</div><div>&nbsp; Form1: TclForm;&nbsp;</div><div>&nbsp; clRest: TCLRest;</div><div>&nbsp; Button1: TCLButton;</div><div>&nbsp; InputText: TCLEdit;&nbsp; // User input for the query</div><div>&nbsp; OutputLabel: TCLLabel;&nbsp; // To display the response from Gemini</div><div>&nbsp; RequestBody: string;&nbsp; // Request body (query)</div><div>&nbsp; ResponseBody: string;&nbsp; // Response from Gemini API</div><div><br></div><div>// Function to send the request to Gemini and display the response</div><div>void GetGeminiResponse;</div><div>{</div><div>&nbsp; // Get the user's query from the input field</div><div>&nbsp; RequestBody = '{"query":"' + InputText.Text + '"}';</div><div><br></div><div>&nbsp; // Set up the clRest component for the POST request</div><div>&nbsp; clRest.BaseURL = '<a href="https://gemini.api.endpoint/v1/query" target="_blank" rel="nofollow">https://gemini.api.endpoint/v1/query</a>';&nbsp; // Replace with the Gemini API endpoint</div><div>&nbsp; clRest.Accept = 'application/json';&nbsp; // Expect a JSON response</div><div>&nbsp; clRest.Method = rmPOST;&nbsp; // Use POST method to send data</div><div>&nbsp; clRest.AddHeader('Authorization', 'Bearer AIzaSyDut9bAFq5jPRLpR2Mg9XEg5uwZI-ixtf4');&nbsp; // Replace with your actual API key</div><div>&nbsp; clRest.AddBody(RequestBody, 'application/json');&nbsp; // Attach the query in the request body</div><div><br></div><div>&nbsp; // Execute the request</div><div>&nbsp; clRest.Execute;</div><div><br></div><div>&nbsp; // Get the response and display it in the label</div><div>&nbsp; ResponseBody = clRest.Response;</div><div>&nbsp; OutputLabel.Caption = 'Gemini Response: ' + ResponseBody;</div><div>}</div><div><br></div><div>{</div><div>&nbsp; // Create the form and components</div><div>&nbsp; Form1 = TclForm.Create(Self);</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Create a text input field for the user's query</div><div>&nbsp; InputText = Form1.AddNewEdit(Form1, 'InputText', 'Enter your query...');</div><div>&nbsp; InputText.Width = 300;</div><div>&nbsp; InputText.Height = 50;</div><div>&nbsp; InputText.Align = alTop;</div><div><br></div><div>&nbsp; // Create a label to display the response from Gemini</div><div>&nbsp; OutputLabel = Form1.AddNewLabel(Form1, 'OutputLabel', 'The response will appear here.');</div><div>&nbsp; OutputLabel.Width = 300;</div><div>&nbsp; OutputLabel.Height = 100;</div><div>&nbsp; OutputLabel.Align = alClient;</div><div><br></div><div>&nbsp; // Create a button to trigger the request</div><div>&nbsp; Button1 = Form1.AddNewButton(Form1, 'Button1', 'Send Query');</div><div>&nbsp; Form1.AddNewEvent(Button1, tbeOnClick, 'GetGeminiResponse');</div><div>&nbsp; Button1.Align = alBottom;</div><div><br></div><div>&nbsp; // Create the REST client for Gemini API interaction</div><div>&nbsp; clRest = TCLRest.Create;</div><div><br></div><div>&nbsp; // Run the form</div><div>&nbsp; Form1.Run;</div><div>}</div><div>şu şekilde denedim ama gelen cevap boş çıkmakta nasıl yapabilirim</div>]]>
   </description>
   <pubDate>Thu, 21 Nov 2024 15:53:15 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=964&amp;PID=1904#1904</guid>
  </item> 
  <item>
   <title><![CDATA[TClOpenAIEngien Gemini soru sorma ve cevap alam : Merhaba Ya&#351;ar,TclOpenAIEngine...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=964&amp;PID=1902#1902</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=142">BilalCndn</a><br /><strong>Konu:</strong> 964<br /><strong>Gönderim Zamanı:</strong> 21&nbsp;Kasım&nbsp;2024 Saat 15:38<br /><br />Merhaba Yaşar,<div><br></div><div>TclOpenAIEngine ile OpenAI firmasına ait GPT modellerini kullanabilirsin. Gemini modelleri için uygun değildir.</div><div><br></div><div>İyi çalışmalar dilerim.</div>]]>
   </description>
   <pubDate>Thu, 21 Nov 2024 15:38:34 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=964&amp;PID=1902#1902</guid>
  </item> 
  <item>
   <title><![CDATA[TClOpenAIEngien Gemini soru sorma ve cevap alam :  ]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=964&amp;PID=1901#1901</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=246">yasar</a><br /><strong>Konu:</strong> 964<br /><strong>Gönderim Zamanı:</strong> 21&nbsp;Kasım&nbsp;2024 Saat 15:34<br /><br /><img src="" border="0" />]]>
   </description>
   <pubDate>Thu, 21 Nov 2024 15:34:46 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=964&amp;PID=1901#1901</guid>
  </item> 
  <item>
   <title><![CDATA[TClOpenAIEngien Gemini soru sorma ve cevap alam : var Form1: TclForm; OpenAIEngine1:...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=964&amp;PID=1900#1900</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=246">yasar</a><br /><strong>Konu:</strong> 964<br /><strong>Gönderim Zamanı:</strong> 21&nbsp;Kasım&nbsp;2024 Saat 15:32<br /><br /><div>var</div><div>&nbsp; Form1: TclForm;</div><div>&nbsp; OpenAIEngine1: TclOpenAIEngine;</div><div>&nbsp; Button1: TCLButton;</div><div>&nbsp; InputText: TCLEdit;&nbsp; // Kullanıcının sorusunu gireceği kutu</div><div>&nbsp; OutputLabel: TCLLabel;&nbsp; // Yanıtı göstereceğimiz etiket</div><div>&nbsp; RequestBody: string;</div><div><br></div><div>// Gemini API'ye istek göndermek için kullanılacak metot</div><div>void GetGeminiResponse;</div><div>{</div><div>&nbsp; // Kullanıcının sorusunu al</div><div>&nbsp; RequestBody = '{"query":"' + InputText.Text + '"}';</div><div><br></div><div>&nbsp; // OpenAIEngine1'i yapılandırma</div><div>&nbsp; OpenAIEngine1.SetToken('Gemini API'si); // Gemini API anahtarınızı buraya ekleyin</div><div><br></div><div>&nbsp; // ParentForm özelliğini ayarla</div><div>&nbsp; OpenAIEngine1.ParentForm = Form1;&nbsp; // Form1'e bağla</div><div><br></div><div>&nbsp; // API'ye sorguyu gönder</div><div>&nbsp; OpenAIEngine1.SendAIMessage(RequestBody);</div><div><br></div><div>&nbsp; // Yanıtı al</div><div>&nbsp; OutputLabel.Caption = 'Gemini Yanıtı: ' + OpenAIEngine1.NewMessageContent;</div><div>}</div><div><br></div><div>{</div><div>&nbsp; // Form ve bileşenleri oluştur</div><div>&nbsp; Form1 = TclForm.Create(Self);</div><div><br></div><div>&nbsp; // Kullanıcının sorusunu yazacağı metin kutusu</div><div>&nbsp; InputText = Form1.AddNewEdit(Form1, 'InputText', 'Soru yazın...');</div><div>&nbsp; InputText.Width = 300;</div><div>&nbsp; InputText.Height = 50;</div><div>&nbsp; InputText.Align = alTop;</div><div><br></div><div>&nbsp; // Yanıtı gösterecek etiket</div><div>&nbsp; OutputLabel = Form1.AddNewLabel(Form1, 'OutputLabel', 'Yanıt burada görünecek');</div><div>&nbsp; OutputLabel.Width = 300;</div><div>&nbsp; OutputLabel.Height = 100;</div><div>&nbsp; OutputLabel.Align = alClient;</div><div><br></div><div>&nbsp; // Buton oluştur</div><div>&nbsp; Button1 = Form1.AddNewButton(Form1, 'Button1', 'Soru Gönder');</div><div>&nbsp; Form1.AddNewEvent(Button1, tbeOnClick, 'GetGeminiResponse');</div><div>&nbsp; Button1.Align = alBottom;</div><div><br></div><div>&nbsp; // OpenAIEngine1'i oluştur</div><div>&nbsp; OpenAIEngine1 = TclOpenAIEngine.Create(Self);</div><div><br></div><div>&nbsp; // Formu başlat</div><div>&nbsp; Form1.Run;</div><div>}</div><div>kodu bu şekilde yazdım ama şu şekilde&nbsp;<img src="" border="0" /></div><div>bana cevap getirdi nasıl çözebilirim ilgilendiğiniz için teşekürler</div>]]>
   </description>
   <pubDate>Thu, 21 Nov 2024 15:32:35 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=964&amp;PID=1900#1900</guid>
  </item> 
 </channel>
</rss>