Giter VIP home page Giter VIP logo

delmardelima / chatgpt4delphi Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 3.0 33 KB

A biblioteca ChatGPT4Delphi é uma classe para o Delphi que facilita o uso da API do ChatGPT da OpenAI. Permite enviar perguntas e receber respostas geradas automaticamente com poucas linhas de código. Gerencia comunicação HTTP e serialização/deserialização de JSON. Fácil de integrar em aplicativos Delphi existentes. Personalizável.

License: GNU General Public License v3.0

Pascal 100.00%

chatgpt4delphi's Introduction

ChatGPT4Delphi

A Delphi class to consume the OpenAI ChatGPT API easily.

Description

This library is a Delphi class that allows you to easily consume the OpenAI ChatGPT API. With just a few lines of code, you can send a message to the language model and receive an automatically generated response. The class manages all the HTTP communication and JSON serialization/deserialization, making the integration with the ChatGPT API extremely easy. Additionally, the class is fully customizable and can be easily integrated into existing Delphi applications.

Usage

To use the class, simply add it to your Delphi project and call the appropriate methods to send messages and receive responses from the ChatGPT API.

Example Usage

Here is a simple example of how to use the ChatGPT4Delphi class:

uses ChatGPT4Delphi;

var
  ChatBot: TChatGPT4Delphi;
  Response: string;
begin
  ChatBot := TChatGPT4Delphi.Create('YOUR_ACCESS_KEY_HERE');
  try
    Response := ChatBot.Query('What is the capital of France?');
    WriteLn(Response);
  finally
    ChatBot.Free;
  end;
end;

Requirements

  • Delphi 10.3 or later

Contributing

If you want to contribute to the development of this library, please feel free to fork the repository and make a pull request.

Delmar de Lima (Cortes DEV)

Support

Get in touch with us for any questions or inquiries through WhatsApp: https://wa.me/5597991442486

Donations

Donate via PIX:

Cell: (97) 99144-2486

Connect with us

Get to know us better on our YouTube channel:
>> FIND OUT MORE

License

This library is licensed under the GPL-3.0 license. See LICENSE for more details.

ChatGPT4Delphi

Uma classe Delphi para consumir facilmente a API do ChatGPT da OpenAI.

Descrição

Esta biblioteca é uma classe Delphi que permite consumir facilmente a API do ChatGPT da OpenAI. Com apenas algumas linhas de código, você pode enviar uma mensagem para o modelo de linguagem e receber uma resposta gerada automaticamente. A classe gerencia toda a comunicação HTTP e serialização/deserialização de JSON, tornando a integração com a API do ChatGPT extremamente fácil. Além disso, a classe é totalmente personalizável e pode ser facilmente integrada a aplicações Delphi existentes.

Uso

Para usar a classe, basta adicioná-la ao seu projeto Delphi e chamar os métodos apropriados para enviar mensagens e receber respostas da API do ChatGPT.

Exemplo de Uso

Aqui está um exemplo simples de como usar a classe ChatGPT4Delphi:

uses ChatGPT4Delphi;

var
  ChatBot: TChatGPT4Delphi;
  Response: string;
begin
  ChatBot := TChatGPT4Delphi.Create('SUA_CHAVE_ACESSO_AQUI');
  try
    Response := ChatBot.Query('Qual é a capital da França?');
    WriteLn(Response);
  finally
    ChatBot.Free;
  end;
end;

Requisitos

  • Delphi 10.3 ou posterior

Contribuindo

Se você quiser contribuir para o desenvolvimento desta biblioteca, sinta-se à vontade para fazer um fork do repositório e fazer uma pull request.

Delmar de Lima (Cortes DEV)

Suporte

Entre em contato conosco para qualquer dúvida ou pergunta pelo WhatsApp: https://wa.me/5597991442486

Doações

Faça sua doação via PIX:

Celular: (97) 99144-2486

Conecte-se com a gente

Conheça mais sobre nós em nosso canal no YouTube:
>> CONHEÇA MAIS

Licença

Esta biblioteca é licenciada sob a licença GPL-3.0. Veja LICENSE para mais detalhes.

chatgpt4delphi's People

Contributors

delmardelima avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

grings fraurino

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.