#Rust πŸ¦€ – Using #OpenAI ChatGPT APIs from Rust. Demo Chat console App

Hi! Let’s look at my sample repository on how to use OpenAI APIs in Rust. I added a new scenario: a sample console chat app that uses the new ChatGPT APIs model. The process is remarkably similar to the text completion scenario, including a major change in the model used. Instead of davinci-003, we use…… Continue reading #Rust πŸ¦€ – Using #OpenAI ChatGPT APIs from Rust. Demo Chat console App

#Rust πŸ¦€ – Using #OpenAI Text Completion APIs from Rust

Hi! Let’s look at my sample repository on how to use OpenAI APIs in Rust. It includes a sample console app that uses the Text Completion API endpoint. In case you want to know more: TheΒ completionsΒ endpoint can be used for a wide variety of tasks. It provides a simple but powerful interface to any of…… Continue reading #Rust πŸ¦€ – Using #OpenAI Text Completion APIs from Rust

#Rust πŸ¦€ – Serializing and Deserializing data structures to JSON with Serde

Hi! While I was creating a sample on how to use OpenAI APIs in Rust, I realized that I needed to serialize and deserialize some data in JSON format. Lucky me, Serde JSON works great! Serde JSON Serde JSON is a library for serializing and deserializing Rust data structures efficiently and generically12. It provides ways…… Continue reading #Rust πŸ¦€ – Serializing and Deserializing data structures to JSON with Serde

@code – Profiles in Visual Studio Code, work with only the extensions you need! πŸ˜€

Hi ! Profiles in Visual Studio Code are a way to create different environments for different projects or purposes. They allow us to switch between different sets of extensions, settings, and keyboard shortcuts without affecting our default VS Code configuration. I found it super useful mostly when I think about the extensions that I have.…… Continue reading @code – Profiles in Visual Studio Code, work with only the extensions you need! πŸ˜€

#Rust πŸ¦€ – How to find a variable data type πŸ€”

Hi ! Quick post today to share how to find a variable data type in Rust. As far as I understand, we can use several ways to do this. In example, we can use these 2 std functions: use std::any::type_name function use std::intrinsics::type_name The full sample code below create 2 vectors with different data, and…… Continue reading #Rust πŸ¦€ – How to find a variable data type πŸ€”

#Rust πŸ¦€ – Learning HTTP GET and POST requests in Rust, and yes this is a “🌐What’s my IP” demo πŸ˜„

Hi ! Yes, I’m starting to use OpenAI services in with Rust. However, before getting here, I spent some time learning how to work with HTTP Requests in Rust. There seems to be several libraries that can help. I found several examples using [https://docs.rs/reqwest/0.6.2/reqwest/], so I decided to use this one. A classic example to…… Continue reading #Rust πŸ¦€ – Learning HTTP GET and POST requests in Rust, and yes this is a “🌐What’s my IP” demo πŸ˜„

Event – 🧠 OpenAI, ChatGPT and #PowerPlatform … Yes, and without coding !

Photo by Tara Winstead on Pexels.com Hi ! Are you ready to tap into the endless possibilities of ChatGPT? With the recent release of new OpenAI services on Azure, the potential for building innovative applications has never been greater. I think it’s time explore the amazing capabilities of ChatGPT and how we can harness them…… Continue reading Event – 🧠 OpenAI, ChatGPT and #PowerPlatform … Yes, and without coding !

#Rust πŸ¦€ – Working with hashmaps is cool. And a little C# experience πŸ˜„

Hi ! During today’s Rust lession in the “First Steps with Rust” (in Spanish), we reviewed the Hashmaps in Rust. We talk about the behavior when we access a non existing item, and it was nice to get a NONE return instead of an error or an exception. In example this code: use std::collections::HashMap; fn…… Continue reading #Rust πŸ¦€ – Working with hashmaps is cool. And a little C# experience πŸ˜„

#Rust πŸ¦€ – Working with arrays, vectors and println! macro in Debug mode πŸ›

Hi ! It’s time to learn a little about arrays and vectors. And sure, using println! is a great way to check how this elements works. However, there is a little something extra to learn here. Let me start with a simple scenario. Defining a vector with weekdays, and print the content. Something like this…… Continue reading #Rust πŸ¦€ – Working with arrays, vectors and println! macro in Debug mode πŸ›

#Rust πŸ¦€ – 🧡 String Interpolation in Rust (as usual, super fun πŸ˜„)

Hi ! Working with string is always a nice topic to learn. It’s nice to understand how a specific language process strings, sometimes small changes can have big performance improvements ! String Interpolation So let’s start (via Wikipedia) with some basic concepts. In computer programming, string interpolation (or variable interpolation, variable substitution, or variable expansion)…… Continue reading #Rust πŸ¦€ – 🧡 String Interpolation in Rust (as usual, super fun πŸ˜„)