Git Product home page Git Product logo

chatgpt-sohbet-botu's Introduction

ChatGPT Sohbet Botu

Bu Python kodu, PyQt5 kullanılarak basit bir GUI (Grafiksel Kullanıcı Arayüzü) içeren bir sohbet uygulamasını oluşturan bir programdır. Bu uygulama, OpenAI tarafından sağlanan GPT-3.5-turbo modelini kullanarak metin tabanlı sohbet yapma yeteneğine sahiptir.

ChatGPT-ile-Baglanti

Kullanım

  1. Projeyi bilgisayarınıza klonlayın.

    git clone https://github.com/simgeilaydameric/ChatGPT-ile-Baglanti.git
  2. Gerekli kütüphaneleri kurun

    pip install -r requirements.txt
  3. OpenAI'den alınan API anahtarınızı .env adında bir dosya açıp ekleyin.

    OPENAI_KEY = "OPENAI-API-KEY"
    
  4. Uygulamayı çalıştırın.

    python GPTbaglantiKodlari.py

İşlevsellik

  • Birincil pencere ve içeriği oluşturulur.
  • Kullanıcının metin girişi için bir QTextEdit kutusu eklenir.
  • ChatGPT'nin cevaplarını görüntülemek için başka bir QTextEdit kutusu eklenir.
  • "Sohbet Et" adlı bir düğme eklenir ve bu düğmeye tıklandığında chatWithGPT fonksiyonu çağrılır.
  • chatWithGPT fonksiyonu, kullanıcının girdisini alır, GPT-3.5-turbo modeliyle iletişim kurar ve modelin cevabını ikinci QTextEdit kutusuna ekler.
  • OpenAI'nin Python kütüphanesi olan openai kullanılarak GPT-3.5-turbo modeliyle iletişim sağlanır.

API Anahtarı Alma

API anahtarınızı almak için izleyebilirsiniz: API-Key-Video

Önemli Notlar

  • Projeyi çalıştırmadan önce OpenAI'den edinilen API anahtarını eklemeyi unutmayın.
  • OpenAI API'sini kullanabilmek için gerekli kütüphanenin (openai) yüklü olduğundan emin olun.
  • Bu uygulama, basit bir sohbet arayüzü sağlar ve kullanıcının girişine yanıt olarak GPT-3.5-turbo modelinden gelen cevapları görüntüler.

Katkılar

Bu proje açık kaynaklıdır. Katkıda bulunmak isterseniz, lütfen forklayın ve pull request gönderin.

chatgpt-sohbet-botu's People

Contributors

simgeilaydameric avatar cobanov avatar

Stargazers

Nargila Nurullayeva avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.