Azure OpenAI Service for Rad Studio

From sgcWebSockets 2023.7.0 the Microsoft Azure OpenAI Service is supported.  Azure OpenAI Service can be used to create chatbots, generate text, translate languages, and write different kinds of creative content. As the platform continues to evolve, developers will be able to use it to build even more powerful and sophisticated applications. ...

Continue reading

sgcWebSockets 2023.6

Rad Studio [+] : New Pinecone API Client, it's a vector database which provides long-term memory for AI using embeddings from AI models. [+] : New Demo showing the main features of Pinecone API, it's located in the folder "15.AI\10.Vector_Database\01.Pinecone". [+] : New TsgcAIDatabaseVectorFile, handles the OpenAI Embedding vectors using 2 files: ...

Continue reading

Delphi Pinecone API client

From sgcWebSockets 2023.6.0 Pinecone API is supported. Pinecone.io Pinecone is a vector database that allows to upload / query / delete vector data in an easy and powerful way.Pinecone has a public API that allows third-parties to integrate pinecone into it's own applications. The component TsgcHTTP_API_Pinecone is a wrapper over the Pinecone API. ...

Continue reading

Customizing OpenAI with your Data (2 / 2)

In a previous post, we see how to use OpenAI Embeddings to add contextual information to OpenAI chat methods. Now, we'll see how to use the TsgcOpenAIEmbeddings component from sgcWebSockets package to build AI applications using our own data. In the post Delphi Voice ChatBot, we used the component TsgcAIOpenAIChatBot to build a ChatBot handled...

Continue reading

Customizing OpenAI with your Data (1 / 2)

When we ask to OpenAI a question that requires some specific context, example: Who is my father? OpenAI can either hallucinate or answer that he doesn't know. To help OpenAI answer specific questions, you can provide extra contextual information in the prompt itself. My father lives in Barcelona and is 50 year's old. If we ask again to openAI the s...

Continue reading

sgcWebSockets 2023.5

Rad Studio [+] : New TsgcAIOpenAIChatBot, is an OpenAI ChatBot Component, allowing to build a Voice Command ChatBot for Windows using OpenAI APIs and Text-To-Speech Providers like Google or Amazon. [+] : New TsgcAIOpenAITranslator, is an OpenAI Translator Component, allowing to build a Voice Command Translator Application for Windows using OpenAI A...

Continue reading

Delphi Real-Time Translator

From sgcWebSockets 2023.5.0 building Real-Time Translators is more easy using OpenAI APIs and Text-To-Speech APIs from Windows, Google or Amazon. OpenAI translation building applications offer a multitude of advantages. They provide fast and accurate translations across multiple languages, enabling seamless communication and breaking down language ...

Continue reading

Delphi Voice ChatBot

From sgcWebSockets 2023.5.0 building Voice ChatBots is more easy using OpenAI APIs and Text-To-Speech APIs from Windows, Google or Amazon. Chatbots and Virtual Assistants are Applications that can converse with humans in a natural, human-like manner. These can be used for customer support, handling queries, and providing information on a websi...

Continue reading

sgcWebSockets 2023.4

Rad Studio [+] : New Server API Component TsgcWSAPIServer_WebPush, implements WebPush Protocol on Server Side, allowing to ask permission to the users, register the subscriptions, send notifications and more. [+] : New Client API Component TsgcWebPush_Client, implements WebPush Protocol on Client Side, allowing to send notifications to users via de...

Continue reading

WebPush Notifications

From sgcWebSockets 2023.4.0 WebPush notifications are supported. The Web Push protocol is a technology used to deliver real-time notifications to users on the web. The three main features of the Web Push protocol are: Push Notifications: The Web Push protocol allows web applications to send notifications to users even when the application is not op...

Continue reading

sgcWebSockets 2023.3

Rad Studio [+] : Added Support for OpenAI API, which allows to interact with models like gpt-3.5-turbo, speech to text, translations, Image AI generation and much more. [+] : New Demos which show how to use the OpenAI API in the folder "15.AI". [+] : Improved TsgcWebSocketClient_WinHTTP, there is a new property "VerifyCertificate" to enable the Ser...

Continue reading

OpenAI Delphi API (1 / 5)

From sgcWebSockets 2023.3.0 the OpenAI API is fully supported. The OpenAI API can be applied to virtually any task that involves understanding or generating natural language, code, or images. OpenAI offer a spectrum of models with different levels of power suitable for different tasks, as well as the ability to fine-tune your own custom models. The...

Continue reading

ChatGPT Delphi Client (2 / 5)

OpenAI API allows to build your own AI Chats using ChatGPT Turbo. Using the sgcWebSockets library is very easy to interactuate with the API, given a chat conversation, the model will return a chat completion response.  ChatGPT Delphi Example OpenAI requires to build a request were you pass the messages to sent to ChatGPT Turbo, the temper...

Continue reading

Transcription OpenAI Delphi Client (3 / 5)

Transcribing Audio to Text (also known as Speech to Text) is very easy using the OpenAI API, just upload an Audio file in one of the following formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm. And the API will return the string. Transcription Delphi Example OpenAI requires to build a request were you pass the audio file, the model, the te...

Continue reading

Translate OpenAI Delphi Client (4 / 5)

Translating Audio to Text is very easy using the OpenAI API, just upload an Audio file in one of the following formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm. And the API will translate the audio to English. Translation Delphi Example OpenAI requires to build a request were you pass the audio file, the model, the temperature (to get a more ore le...

Continue reading

Image Generator OpenAI Delphi (5 / 5)

OpenAI API allows given a prompt and/or an input image, the model will generate a new image. The Images API provides three methods for interacting with images:1. Creating images from scratch based on a text prompt2. Creating edits of an existing image based on a new text prompt3. Creating variations of an existing image Image Generator Delphi ...

Continue reading

sgcWebSockets 2023.2

Rad Studio [+] : Added Support for Rad Studio 11.3. [+] : New OpenAPI Pascal Parser, imports any openAPI 3.0, Swagger 1.0 or 2.0 specification and creates a pascal interface file. [+] : Improved HTTP.SYS Server, new event OnTCPConnect, is called AFTER the TCP connection and BEFORE Websocket handshake or HTTP read request. [+] : Improved WebSocket S...

Continue reading

OpenAPI Delphi Parser

I am happy to announce the sgcOpenAPI Pascal Parser, a brand new product allowing import an OpenAPI Specification and generate a Pascal Interface. The sgcOpenAPI Parser supports the following specifications: OpenAPI 3.*Swagger 2.* (automatically converted from 2.0 to 3.0)Swagger 1.* (automatically converted from 1.0 to 3.0) Supports the follow...

Continue reading

Delphi Server Sent Events (SSE) Client

From sgcWebSockets 2023.2.0 the HTTP/1 Client has been improved and supports SSE requests. Remember than SSE was already supported on Server components but not on client. SSE (Server-Sent Events) is a web technology for efficiently receiving push notifications from a server to a client's browser. It's a standard that allows a web page to receive up...

Continue reading

Mapping Groups and Connections

In a previous post I Introduced the new Groups feature on WebSocket Servers. This post I will show how to combine the WebSocket Groups with the Client Connections to identify and store the user data in a client connection. sgcWebSockets library allows you to create your own objects and link to a TsgcWSConnection class, so you can access at any time...

Continue reading