<?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 : yapay zekada belirtilen anahtar bulunamadı hatası</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : yapay zekada belirtilen anahtar bulunamadı hatası]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 10:54:30 +0000</pubDate>
  <lastBuildDate>Fri, 04 Jul 2025 15:14:08 +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=1055</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[yapay zekada belirtilen anahtar bulunamadı hatası : son5mesaj olmal&#305;yd&#305; eksik yazm&#305;&#351;&#305;m...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1055&amp;PID=2111#2111</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=310">Sudesigirci</a><br /><strong>Konu:</strong> 1055<br /><strong>Gönderim Zamanı:</strong> 04&nbsp;Temmuz&nbsp;2025 Saat 15:14<br /><br />son5mesaj<em> olmalıydı eksik yazmışım&nbsp;]]>
   </description>
   <pubDate>Fri, 04 Jul 2025 15:14:08 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1055&amp;PID=2111#2111</guid>
  </item> 
  <item>
   <title><![CDATA[yapay zekada belirtilen anahtar bulunamadı hatası : Merhaba Hale &#246;ncelikle yard&#305;mc&#305;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1055&amp;PID=2110#2110</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=310">Sudesigirci</a><br /><strong>Konu:</strong> 1055<br /><strong>Gönderim Zamanı:</strong> 04&nbsp;Temmuz&nbsp;2025 Saat 15:12<br /><br />Merhaba Hale öncelikle yardımcı olduğun için teşekkür ederim&nbsp; &nbsp;<div>son5mesaj yazarak dizinin tamamını karşılaştırmaya çalışıyordum fakat doğrusu aşağıdaki gibi olmalıydı<div>&nbsp; TamGirdi = '';<div>&nbsp; &nbsp; for (i = 0 to 4) {</div><div>&nbsp; if Son5Mesaj<em> &lt;&gt; '' {</div><div>&nbsp; &nbsp; TamGirdi = TamGirdi + '{"text": "' + Son5Mesaj<em> + '"},';</div><div>&nbsp; }</div><div>}&nbsp;</div><div>döngüsünü düzelttiğimde kodum sorunsuz bir şekilde çalıştı.&nbsp;</div><div>Sorun içinde URL nin sonuna ?key ekleyerek kullandığımda bir hata almıyorum sana da yardımcı olması için cevaplamak istedim&nbsp;</div><div>İyi çalışmalar dilerim.</div></div></div>]]>
   </description>
   <pubDate>Fri, 04 Jul 2025 15:12:39 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1055&amp;PID=2110#2110</guid>
  </item> 
  <item>
   <title><![CDATA[yapay zekada belirtilen anahtar bulunamadı hatası : Merhaba Sude, &#214;ncelikle, A&#351;a&#287;&#305;daki...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1055&amp;PID=2108#2108</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=302">haletr</a><br /><strong>Konu:</strong> 1055<br /><strong>Gönderim Zamanı:</strong> 04&nbsp;Temmuz&nbsp;2025 Saat 14:42<br /><br /><p -start="91" -end="104">Merhaba Sude,</p><p -start="106" -end="152">Öncelikle,</p><p -start="154" -end="185">Aşağıdaki gibi yazılan döngüde:</p><div style=": rgb251, 251, 253;">TamGirdi = '';</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; for (i = 0 to 4) {</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; if Son5Mesaj&nbsp;&lt;&gt; '' {</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; &nbsp; TamGirdi = TamGirdi + '{"text": "' + Son5Mesaj&nbsp;+ '"},';</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; }</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; }</div><div style=": rgb251, 251, 253;"><br></div><div style=": rgb251, 251, 253;">Son5Mesaj bir dizi olduğundan, doğrudan bu şekilde kullanıldığında hata alıyordum. Ben de dizinin indekslerini kullanarak şu şekilde güncelledim:</div><div style=": rgb251, 251, 253;"><br></div><div style=": rgb251, 251, 253;"><div style="">TamGirdi = '';</div><div style="">for (i = 0 to 4) {</div><div style="">&nbsp; if (Trim(Son5Mesaj<em>) &lt;&gt; '') {</div><div style="">&nbsp; &nbsp; TamGirdi = TamGirdi + '{"text": "' + Son5Mesaj<em> + '"},';</div><div style="">&nbsp; }</div><div style="">}</div><div style=""><br></div><div style=""><p -start="628" -end="654" style="">Bu haliyle düzgün çalıştı.</p><p -start="656" -end="768" style="">Bir diğer konu da kendi API anahtarımı kullandığımda yukarıdaki düzenlemeyle birlikte her şey sorunsuz ilerledi.</p><p -start="770" -end="1140" style="">Hatanın şundan kaynaklandığını düşünüyorum:&nbsp;</p><p -start="770" -end="1140" style="">Gemini API anahtarını aldığın sayfada (<a href="https://aistudio.google.com/apikey" target="_blank" rel="nofollow">https://aistudio.google.com/apikey</a>) en üstte yer alan model URL’sini tam olarak kopyaladığından ve bu URL’nin sonuna ?key&nbsp;ekleyerek kullandığından emin misin? Özellikle model endpoint’inin eksiksiz ve doğru olması önemli, aksi halde istek doğru modele gitmeyebiliyor.</p><p -start="770" -end="1140" style="">İyi çalışmalar dilerim.</p></div></div>]]>
   </description>
   <pubDate>Fri, 04 Jul 2025 14:42:58 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1055&amp;PID=2108#2108</guid>
  </item> 
  <item>
   <title><![CDATA[yapay zekada belirtilen anahtar bulunamadı hatası : Merhaba , koduma yapay zeka entegre...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1055&amp;PID=2107#2107</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=310">Sudesigirci</a><br /><strong>Konu:</strong> 1055<br /><strong>Gönderim Zamanı:</strong> 04&nbsp;Temmuz&nbsp;2025 Saat 13:56<br /><br />Merhaba , koduma yapay zeka entegre ederken sohbet ekranı açılıyor fakat mesaj gönderdiğimde belirtilen anahtar bulunamadı diyor gemini apiyi enabled ettim api keyi mi açık duruma getirdim fakat aynı hatayı almaya devam ediyorum yardımlarınız için şimdiden teşekkür ederim<div>&nbsp;var<div>&nbsp; AnaForm: TclForm;</div><div>&nbsp; SoruGirdi: TclProEdit;</div><div>&nbsp; GonderButon: TClProButton;</div><div>&nbsp; SohbetPaneli, GirdiPaneli: TclProPanel;</div><div>&nbsp; MesajListesi: TclMemo;</div><div>&nbsp; AnaYerlesim: TClLayout;</div><div>&nbsp; BaslikEtiketi: TclLabel;</div><div>&nbsp; Istek: TclRest;</div><div>&nbsp; API_ANAHTARI, IstekGovdesi, GelenCevap: string;</div><div>&nbsp; SesEfekti: TclMediaPlayer;</div><div>&nbsp; Son5Mesaj: array&#091;0..4&#093; of string;</div><div>&nbsp; MesajSayaci: Integer;</div><div><br></div><div>void IstekTamamlandi;</div><div>{</div><div>&nbsp; GelenCevap = Clomosy.CLParseJSON(Istek.Response, 'candidates.0.content.parts.0.text');</div><div><br></div><div>&nbsp; MesajListesi.Lines.Add('&#129302; Yapay Zeka: ' + GelenCevap);</div><div>&nbsp; MesajListesi.ScrollTo(0, MesajListesi.Lines.Count * MesajListesi.TextSettings.Font.Size, True);</div><div>&nbsp;&nbsp;</div><div>}</div><div><br></div><div>void IstekOlustur(TemelURL, Govde: string);</div><div>{</div><div>&nbsp; Istek = TclRest.Create;</div><div>&nbsp; Istek.Accept = 'application/json';</div><div>&nbsp; Istek.ContentType = 'application/json';</div><div>&nbsp; Istek.Method = rmPOST;</div><div>&nbsp; Istek.ConnectTimeOut = 30000;</div><div>&nbsp; Istek.BaseURL = TemelURL;</div><div>&nbsp; Istek.Body = Govde;</div><div>&nbsp; Istek.OnCompleted = 'IstekTamamlandi';</div><div>&nbsp; Istek.ExecuteAsync;</div><div>}</div><div><br></div><div>void GonderButonTiklandi;</div><div>var</div><div>&nbsp; i, indeks: Integer;</div><div>&nbsp; TamGirdi: String;</div><div>{</div><div>&nbsp; if SoruGirdi.Text &lt;&gt; '' {</div><div>&nbsp; &nbsp; MesajListesi.Lines.Add('&#128100; Sen: ' + SoruGirdi.Text);</div><div>&nbsp; &nbsp; MesajListesi.ScrollTo(0, MesajListesi.Lines.Count * MesajListesi.TextSettings.Font.Size, True);</div><div><br></div><div>&nbsp; &nbsp; indeks = MesajSayaci - ((MesajSayaci div 5) * 5);</div><div>&nbsp; &nbsp; Son5Mesaj&#091;indeks&#093; = SoruGirdi.Text;</div><div>&nbsp; &nbsp; Inc(MesajSayaci);</div><div><br></div><div>&nbsp; &nbsp; TamGirdi = '';</div><div>&nbsp; &nbsp; for (i = 0 to 4) {</div><div>&nbsp; &nbsp; &nbsp; if Son5Mesaj<em> &lt;&gt; '' {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; TamGirdi = TamGirdi + '{"text": "' + Son5Mesaj<em> + '"},';</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; IstekGovdesi = '{</div><div>&nbsp; &nbsp; &nbsp; "contents": &#091;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "parts": &#091;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' + TamGirdi +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '{"text": "' + SoruGirdi.Text + '"}</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#093;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &#093;</div><div>&nbsp; &nbsp; }';</div><div><br></div><div>&nbsp; &nbsp; API_ANAHTARI = 'AIzaSyCRKKrTZUs2UVGWwpKCs9OWJq7QSurbISA';</div><div>&nbsp; &nbsp; IstekOlustur(</div><div>&nbsp; &nbsp; &nbsp; '<a href="https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-pro:generateC&#111;ntent?key=" target="_blank" rel="nofollow">https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-pro:generateContent?key=</a>' + API_ANAHTARI,</div><div>&nbsp; &nbsp; &nbsp; IstekGovdesi</div><div>&nbsp; &nbsp; );</div><div><br></div><div>&nbsp; &nbsp; SoruGirdi.Text = '';</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void GirdiPaneliniAyarla;</div><div>{</div><div>&nbsp; GirdiPaneli = AnaForm.AddNewProPanel(AnaYerlesim, 'GirdiPaneli');</div><div>&nbsp; GirdiPaneli.Align = AlBottom;</div><div>&nbsp; GirdiPaneli.Height = 100;</div><div>&nbsp; GirdiPaneli.Margins.Top = 5;</div><div>&nbsp; GirdiPaneli.Margins.Bottom = 20;</div><div>&nbsp; GirdiPaneli.Margins.Left = 10;</div><div>&nbsp; GirdiPaneli.Margins.Right = 10;</div><div><br></div><div>&nbsp; SoruGirdi = AnaForm.AddNewProEdit(GirdiPaneli, 'SoruGirdi', 'Bir soru sor...');</div><div>&nbsp; SoruGirdi.Align = AlClient;</div><div>&nbsp; SoruGirdi.Margins.Left = 10;</div><div>&nbsp; SoruGirdi.Margins.Right = 10;</div><div>&nbsp; SoruGirdi.Margins.Top = 10;</div><div>&nbsp; SoruGirdi.Margins.Bottom = 10;</div><div>&nbsp; SoruGirdi.clProSettings.BorderColor = clAlphaColor.clHexToColor('#3bf5c0');</div><div>&nbsp; SoruGirdi.clProSettings.IsRound = True;</div><div>&nbsp; SoruGirdi.clProSettings.RoundHeight = 10;</div><div>&nbsp; SoruGirdi.clProSettings.RoundWidth = 10;</div><div>&nbsp; SoruGirdi.SetclProSettings(SoruGirdi.clProSettings);</div><div><br></div><div>&nbsp; GonderButon = AnaForm.AddNewProButton(GirdiPaneli, 'GonderButon', 'Gönder');</div><div>&nbsp; GonderButon.Align = AlRight;</div><div>&nbsp; GonderButon.Width = GirdiPaneli.Width / 4;</div><div>&nbsp; GonderButon.Margins.Bottom = 10;</div><div>&nbsp; GonderButon.Margins.Top = 10;</div><div>&nbsp; GonderButon.Margins.Right = 10;</div><div>&nbsp; GonderButon.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#1814F3');</div><div>&nbsp; GonderButon.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; GonderButon.clProSettings.IsRound = True;</div><div>&nbsp; GonderButon.clProSettings.RoundHeight = 10;</div><div>&nbsp; GonderButon.clProSettings.RoundWidth = 10;</div><div>&nbsp; GonderButon.SetclProSettings(GonderButon.clProSettings);</div><div><br></div><div>&nbsp; AnaForm.AddNewEvent(GonderButon, tbeOnClick, 'GonderButonTiklandi');</div><div>}</div><div><br></div><div>void SohbetPaneliniAyarla;</div><div>{</div><div>&nbsp; SohbetPaneli = AnaForm.AddNewProPanel(AnaYerlesim, 'SohbetPaneli');</div><div>&nbsp; SohbetPaneli.Align = AlClient;</div><div>&nbsp; SohbetPaneli.Margins.Right = 10;</div><div>&nbsp; SohbetPaneli.Margins.Left = 10;</div><div>&nbsp; SohbetPaneli.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#f7f7f7');</div><div>&nbsp; SohbetPaneli.SetclProSettings(SohbetPaneli.clProSettings);</div><div><br></div><div>&nbsp; MesajListesi = AnaForm.AddNewMemo(SohbetPaneli, 'MesajListesi', '');</div><div>&nbsp; MesajListesi.Align = alClient;</div><div>&nbsp; MesajListesi.ReadOnly = True;</div><div>&nbsp; MesajListesi.Margins.Top = 20;</div><div>&nbsp; MesajListesi.Margins.Left = 20;</div><div>&nbsp; MesajListesi.Margins.Bottom = 20;</div><div>&nbsp; MesajListesi.Margins.Right = 20;</div><div>&nbsp; MesajListesi.TextSettings.Font.Size = 18;</div><div>&nbsp; MesajListesi.TextSettings.WordWrap = True;</div><div>&nbsp; MesajListesi.EnabledScroll = True;</div><div>}</div><div><br></div><div>void BasligiAyarla;</div><div>{</div><div>&nbsp; BaslikEtiketi = AnaForm.AddNewLabel(AnaForm.LytTopBar, 'BaslikEtiketi', 'Bitki Asistanı (Yapay Zeka)');</div><div>&nbsp; BaslikEtiketi.TextSettings.Font.Size = 20;</div><div>&nbsp; BaslikEtiketi.Align = alLeft;</div><div>&nbsp; BaslikEtiketi.Margins.Left = 14;</div><div>&nbsp; BaslikEtiketi.Margins.Top = 10;</div><div>&nbsp; BaslikEtiketi.Height = 65;</div><div>&nbsp; BaslikEtiketi.Width = 259;</div><div>}</div><div><br></div><div>{</div><div>&nbsp; MesajSayaci = 0;</div><div>&nbsp; AnaForm = TclForm.Create(Self);</div><div>&nbsp; AnaForm.BtnFormMenu.Visible = False;</div><div>&nbsp; AnaForm.FormWaiting.Visible = False;</div><div><br></div><div>&nbsp; BasligiAyarla;</div><div><br></div><div>&nbsp; AnaYerlesim = AnaForm.AddNewLayout(AnaForm, 'AnaYerlesim');</div><div>&nbsp; AnaYerlesim.Align = alClient;</div><div>&nbsp; AnaYerlesim.Margins.Bottom = 10;</div><div>&nbsp; AnaYerlesim.Margins.Top = 10;</div><div><br></div><div>&nbsp; SohbetPaneliniAyarla;</div><div>&nbsp; GirdiPaneliniAyarla;</div><div><br></div><div>&nbsp; AnaForm.Run;</div><div>}</div><div><br></div></div>]]>
   </description>
   <pubDate>Fri, 04 Jul 2025 13:56:50 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1055&amp;PID=2107#2107</guid>
  </item> 
 </channel>
</rss>