teleren/devto huggingface dataset:
#Azure – #OpenAI Services, Completion Playground Parameters
Tags: englishpost, azureopenai, completionplayground
Published: 2023-05-09 15:26:39

---
title: #Azure – #OpenAI Services, Completion Playground Parameters
published: true
date: 2023-05-08 14:27:35 UTC
tags: EnglishPost,AzureOpenAI,CompletionPlayground,EnglishPost
canonical_url: 
---

Hi!

In part of my demos / explanations on Prompt Engineering, I use Azure OpenAI Services, and the **Azure OpenAI Studio**.

_Note: You can request access to Azure OpenAI Services here: [https://aka.ms/oai/access](https://aka.ms/oai/access)._

In the Completion Playground there are several parameters that we can use to change the performance of our model.

![](https://brunocapuano.files.wordpress.com/2023/05/image.png?w=1024)

These are the ones I usually explain:

### How “creative” the model should be

#### Temperature:

- Temperature controls randomness in the model’s responses.
- Lowering the temperature makes the responses more repetitive and predictable.
- Increasing the temperature makes the responses more creative and unexpected.
- Adjusting the temperature can be done independently of adjusting Top P.

#### Top probabilities (Top P):

- Top P is another way to control randomness in the model’s responses.
- Lowering Top P limits the model’s token selection to more likely tokens.
- Increasing Top P allows the model to choose from tokens with both high and low likelihood.
- Adjusting Top P can be done independently of adjusting temperature.

### How to control the token usage

#### Max length (tokens):

- Max length sets a limit on the number of tokens in the model’s response.
- The API supports a maximum of 4000 tokens for both the prompt and the response.
- One token is roughly equivalent to four characters in typical English text.

#### Stop sequences:

- Stop sequences allow you to specify where the model should stop generating tokens in a response.
- You can define up to four sequences as stop points.
- The returned text won’t include the stop sequences.

### How to add Pre and Post text to the output

#### Pre-response text:

- Pre-response text is inserted after the user’s input and before the model’s response.
- It helps provide context or additional information to the model for generating a response.
- The inserted text prepares the model to better understand and address the user’s query.

#### Post-response text:

- Post-response text is inserted after the model’s generated response.
- It encourages further user input and promotes a conversational flow.
- By adding text after the response, you can guide the user to provide more information or continue the conversation.

There are other parameters and other options to change the behavior of a model. However, these are the ones that I mostly explain and use on live prompting demos.

Happy coding!

Greetings

El Bruno

More posts in my blog [ElBruno.com](https://www.elbruno.com).

More info in [https://beacons.ai/elbruno](https://beacons.ai/elbruno)

* * *
What are your Goals for the week of May 8th?
Tags: motivation, discuss
Published: 2023-05-08 14:16:54

## What are your goals for this week?
 


- What are you building? 
- What will be a good result by week's end?
- Are you attending any events this week?
- Did you meet your goals last week?


I'll start with how I did last week.

### Last Week's Goals

- [:white_check_mark:] Continue Job Search.
- [:white_check_mark:] Finish portfolio refactor. * Done listed another project and found a mistake that's be up fro a month. That's why it's good to get a fresh set of eyes on a project.
- [:white_check_mark:] Blog
- [:white_check_mark:] Content updates on a couple sites.
- Events
  * [:white_check_mark:] Attend Virtual Coffee Thursday. 
  * [:x:] Other VC events if I can.


### This Week's Goals

- Continue Job Search.
  * reschedule a Coffee chat with a recruiter.
- Blog
- Process some photos add them to a site.
- Events
  * Attend Virtual Coffee Thursday. 
  * Other VC events if I can.
  * Attend Dallas Software Developers Meetup (virtual)

### Your Goals for the week


You've read my goals so I'll throw that question back to you.

What are your goals for the week?

```html
-$JarvisScript git push
```
5 Articles every WebDev should read this week (#19)
Tags: javascript, webdev, tutorial, programming
Published: 2023-05-08 14:10:31


A curated list of the top five web development must-reads from last week. Don't miss out on the latest web development stories and insights. Read all about the cutting edge in web development, working in tech and the new tools and frameworks while learning a few new tricks.

---

# The Safest Way To Hide Your API Keys When Using React

> Want to make sure your API keys are safe and sound when working with React? Jessica Joseph’s got you covered! She will show you the best ways to hide your API keys, from using environment variables to building your own back-end proxy server.

https://www.smashingmagazine.com/2023/05/safest-way-hide-api-keys-react/


# How does AI actually work?

> Artificial intelligence has entered a new era. From search to education to art, recent advancements in AI promise to shake up the way we work and live. Yet for some of us, AI poses more questions than answers. How will it affect us? Are there risks? How do we make it trustworthy? Before we can answer these complex questions, it helps to get the basics down on AI. Read on for a crash course on artificial intelligence.

https://blog.mozilla.org/en/internet-culture/how-does-ai-work/


# Mobile-First CSS: Is It Time for a Rethink?

> The mobile-first design methodology is great—it focuses on what really matters to the user, it’s well-practiced, and it’s been a common design pattern for years. So developing your CSS mobile-first should also be great, too…right? 

https://alistapart.com/article/mobile-first-css-is-it-time-for-a-rethink/


# New to the web platform in April

> Discover some of the interesting features that landed in stable and beta web browsers during April 2023.

https://web.dev/web-platform-04-2023/

# 23% of jobs to be disrupted in the next 5 years, WEF predicts


> Nearly a quarter of the world’s jobs will be disrupted in the coming five years, the latest report by the World Economic Forum (WEF) has found. Specifically, the job market will experience a 23% churn, as a result of emerging and vanishing positions.

https://thenextweb.com/news/23-percent-of-jobs-disrupted-next-5-years-wef-predicts

---

[![MODERN FULLSTACK DEVELOPMENT by Martin Krause](https://www.usemodernfullstack.dev/assets/marketing-banner_583-110-dev-to.png)](https://nostarch.com/modern-full-stack)

---

Read ["MODERN FULL STACK DEVELOPMENT"](https://nostarch.com/modern-full-stack) to kickstart your career as a full-stack developer. 

It's a hands-on introduction to creating web applications with today's full-stack developers' most popular tools, libraries, and frameworks. It covers Modern JavaScript, TypeScript, React.js, Next.js, MongoDB, Mongoose, REST APIs, GraphQL, OAuth, Docker and JEST.

---

Follow me on [Twitter: @martinkr](http://twitter.com/_martinkr).

Photo by [Alex Kulikov](https://unsplash.com/@burntime) on [Unsplash](https://unsplash.com)
 
---
Vertical Lift Module (VLM) Market, Report, In-Depth industry Analysis and forecast 2022 To 2028 of market insights
Published: 2023-05-08 14:02:34

The Vertical Lift Module (VLM) Market  Research Reports 2028 offers an extensive collection of reports on different markets covering crucial details. The report studies the competitive environment of the Vertical Lift Module (VLM) Market is based on company profiles and their efforts on increasing product value and production. The Vertical Lift Module (VLM) Market report discusses various factors driving or restraining the market, which will help the future market to grow with promising CAGR.
Get a Sample Copy of the Report@  https://www.theinsightpartners.com/sample/TIPTE100000380/
Automotive Bushing Technologies Market Growing Demands 2022-2028
Published: 2023-05-08 13:51:17

According to new research study on Automotive Bushing Technologies Market research report provides size, share, trends, analysis report contains all study material about market industry overview, growth, demand and forecast research in all over the world. The report also analyses the competitive structure of the Automotive Bushing Technologies and provides the profiles of major players operating in the market. Growth inducing factors, market restraints and recent developments have also been analyzed in the report in order to provide deeper knowledge about the industry.
To Get Sample Copy of Report, Click Here – https://www.theinsightpartners.com/sample/TIPTE100000946/
The Cushion Below The Stepping Stones
Published: 2023-05-08 13:48:01

Hey, code warriors! Do you every now and then feel overwhelmed by the sometimes-discouraging journey of learning Software Development? I know I do, but I try not to fret.

I come bearing personal tips and practices to make the process a bit more bearable (and maybe say, enjoyable?).

First things first, take brain breaks, not just _any_ breaks —BRAIN BREAKS. You heard that right, jump off that chair and do some quick jumping jacks or blast that one song you loved your Junior year in high school & dance to it. Not only will you look like the coolest coder in the room, despite you being the only one there most likely.

Studies show that taking active breaks can improve productivity and retention. So it’s safe to say learning is a marathon, not a sprint; so don't be afraid to take a breather and get moving.

Secondly, "Pair programming.” While not only an excuse to hang out with old (or even new) BFF, it's a valuable practice to get a fresh perspective on tricky coding challenges. Communicating and learning from each other's coding habits, mistakes, and tendencies may be exactly what you need.

Last but not least, turn on your favorite playlist and let the music do the talking. Jam out to your tunes and let the beats boost your focus and creativity. You'll be surprised at how much easier learning becomes when you're in the right mindset.

For me, I could go LoFi, Classical, or R&B/Soul. So long the melody isn’t too attention grabbing, I can focus better than when it’s completely silent. Not to mention, the mood is naturally lifted.

So there you have it, my friends, the secret to mastering Software Development learning (/s). With the power of brain breaks, pair programming, and killer playlists on your side, you'll be coding like a Jedi in no time. May the coding force be with you!
Connecting Azure App Service to Azure SQL Database and Storage Account using Azure CLI part 2.
Tags: azure, storage, cli, beginners
Published: 2023-05-08 13:46:34

This is a continuation of [previous article](https://dev.to/keneojiteli/connecting-azure-app-service-to-azure-sql-database-and-storage-account-using-azure-cli-part-1-1ok7) which showed how to connect azure app service to an azure sql database using azure cli, it is important to read **part 1** before **this article** so as to be aware of the prerequisites and some azure terms.

In this article, I'll demonstrate how to use azure cli to connect an azure app service to a storage account, this is similar to [previous article](https://dev.to/keneojiteli/connecting-azure-app-service-to-azure-sql-database-and-storage-account-using-azure-cli-part-1-1ok7) but with **slight differences**

**Prerequisites**
- An Azure account with an active subscription.
- Azure Cloud shell or a Azure CLI installed on local machine.

**Steps**
- Login into your azure account using `az login` command.
- Create your script and save on an editor using **.ps1** extension; then navigate to the directory where script is saved and run the script.

![Demo script](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/94ohr3r957bpd81l4mte.png)
Note: Always ensure the storage account name is unique in lowercase and does not include special characters (like the screenshot above, I had to change the name to something unique `demoaccount901`).

Feel free to change your location and variable names.

Ensure the variable names on the script is preceded by **$** to avoid errors like screenshot below on powershell.

![Demo script error](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0fs85leho0qfn1lzfxfk.png)

- As with the previous post, the following will be created: a resource group, app service plan and web app.

- After that a storage account with a unique name will be created, through which our app service will connect with to store data.

- Retrieving the connection string from the storage account to have access to stored data in app service.

- And lastly assigning connection string to an app setting which are exposed as environment variables.

![Connection string](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ru5go82t30y32uo2hspq.png)

- Viewing the created resources within the resource group on the azure portal.

![Resources](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/975o2l4jd79dlacrzm20.png)

- Clean up resources with `az group delete --name $resourceGroup`

Thank you for reading and I hope you learned something new, view script on my [repo](https://github.com/KeneOjiteli/connect-app-service-to-azure-db)

The End!!!
Looking for somewhere to contribute!
Tags: webdev, javascript, beginners, programming
Published: 2023-05-08 13:42:59

Hey, I'm a self-taught Developer, just got my bases solid in HTML, JavaScript and CSS. I'm a fast learner!

First web site with React.js:

https://bespoke-banoffee-a466ce.netlify.app/

Do you know someone or somewhere where I can start participating in some project to learn more?

Would love any help!
How to have colors in logs ?
Tags: go, bash, tutorial, productivity
Published: 2023-05-08 13:35:00

Working with scripts is always useful, especially when we want to  automate a lot of things. But most of this scripts generates a lot of logs to be able to follow what's going on. But having so much logs doesn't help when we want to see what happend during the pipeline, and see quickly if something wrong happend.

That's why today we  will see  how to add color in your life and your logs!

---

## How to do it?
*In this example, the code is in Go, but it will work for every system printing their logs in a Bash Console.*

To change the color of a text, you just need to add something which looks like this : `\033[31m`

This little string is what we need to change the text color. The two last numbers are the one which helps us to choose the color to display. In this example, the selected color is red.

### Example with all colors

```go
package main

var Reset = "\033[0m" 
var Red = "\033[31m" 
var Green = "\033[32m" 
var Yellow = "\033[33m" 
var Blue = "\033[34m" 
var Purple = "\033[35m" 
var Cyan = "\033[36m" 
var Gray = "\033[37m" 
var White = "\033[97m"

func main() { 
	println(White + "This is White" + Reset) 
	println(Red + "This is Red" + Reset) 
	println(Green + "This is Green" + Reset) 
	println(Yellow + "This is Yellow" + Reset) 
	println(Blue + "This is Blue" + Reset) 
	println(Purple + "This is Purple" + Reset) 
	println(Cyan + "This is Cyan" + Reset) 
	println(Gray + "This is Gray" + Reset) 
}
```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vocxyi72t000aiit3ec6.png)

In this example, you can ask "Why is there some `Reset` at the end of each line?"

The response is simple: It's a good practice to avoid color issues.

If you forget to reset the color and you don't define another one, the defined color will continue to be used for the following logs! 

*Example*
```go
package main

var Reset = "\033[0m" 
var Red = "\033[31m" 
var Green = "\033[32m" 
var Yellow = "\033[33m" 
var Blue = "\033[34m" 
var Purple = "\033[35m" 
var Cyan = "\033[36m" 
var Gray = "\033[37m" 
var White = "\033[97m"

func main() { 
	println(White + "This is White") 
	println("This is Red" + Reset) 
	println(Green + "This is Green" + Reset) 
	println(Yellow + "This is Yellow") 
	println("This is Blue" + Reset) 
	println(Purple + "This is Purple" + Reset) 
	println(Cyan + "This is Cyan" + Reset) 
	println(Gray + "This is Gray" + Reset) 
}

```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aeskq6nmv1zji2odkphk.png)

## Conclusion
Now you know how to have colors in your logs, and I hope it will help you in your following pipelines and/or scripts!
Examples of DAST Tools for App Security
Tags: security, programming, cybersecurity
Published: 2023-05-08 13:31:25

**DAST tools are essential for testing the security of applications from the outside, simulating an attacker's perspective and identifying vulnerabilities that could be exploited. Check DAST tools that we use and recommend!**

## What are DAST Tools?

**DAST stands for Dynamic Application Security Testing**. DAST tools often provide the ability to proxy requests, record them, tamper with them, replay them, inject parameters, build a site map by crawling, and more.

## DAST tools to consider for software security

Here are two DAST tools that are worth consideration.

**[OWASP Zap](https://owasp.org/www-project-zap/)**

* OWASP ZAP (Zed Attack Proxy) is a popular DAST tool available as freeware.
* With ZAP, you can run the proxy with a browser of your choice, and a site map is created as you navigate the page.
* ZAP's automatic scanner for requests is ongoing, alerting you to security issues as they arise, such as missing security headers or exposed data.
* You can navigate the page manually or use ZAP Spider to build a site map, and ZAP keeps a history of requests, allowing you to retry them with changed payloads.

**[Burp Suite](https://portswigger.net/burp)**

* Burp Suite is another DAST tool worth considering, with more extensions and better community support than ZAP.
* The Community Edition of Burp Suite offers some features for free, such as Repeater.
* To get started with Burp Suite, open a web browser from the Burp Community Edition app, and requests should be visible in the HTTP history.
* Like ZAP, Burp Suite allows you to build a site map by navigating the page manually or using the Burp Spider tool and keeps a history of requests.
* In the Community Edition of Burp Suite, you also have the option to inject various payloads (Intruder), check token randomness (Sequencer), decode the data (Decoder), or compare it (Comparer).

DAST tools play a crucial role in application security testing. Play a little bit with OWASP ZAP and Burp Suite and choose one that suits your needs best.

## Discover more software security tools in a free ebook

Expand your security toolkit by downloading our [free ebook](https://brightinventions.pl/blog/app-security-free-ebook/?utm_source=dev.to&utm_medium=referral&utm_campaign=article_dast) today.

[![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sbbv6fojymk00rvatnqd.png)](https://brightinventions.pl/blog/app-security-free-ebook/?utm_source=dev.to&utm_medium=referral&utm_campaign=article_dast)
Automotive Passive Safety System Market Share 2022- and Forecasts to 2028
Published: 2023-05-08 13:29:29

According to new research study on Automotive Passive Safety System Market research report provides size, share, trends, analysis report contains all study material about market industry overview, growth, demand and forecast research in all over the world. The report also analyses the competitive structure of the Automotive Passive Safety System and provides the profiles of major players operating in the market. Growth inducing factors, market restraints and recent developments have also been analyzed in the report in order to provide deeper knowledge about the industry.
To Get Sample Copy of Report, Click Here – https://www.theinsightpartners.com/sample/TIPRE00029577/
Weekly Roundup 003 (May 1) - 🔥Hot Topics🔥 in workplace, sharepoint, and powerplatform
Tags: roundup, workplace, sharepoint, powerplatform
Published: 2023-05-08 13:24:21

Hey fellow developers! It's @jaloplo, here to give you the latest scoop on what's been happening in the #sharepoint, and #powerplatform communities. 😎

## #sharepoint

- [The Benefits of Strategic Information Architecture for Your Company's Intranet](https://dev.to/jaloplo/the-benefits-of-strategic-information-architecture-for-your-companys-intranet-421l) by [Jaime López](https://dev.to/jaloplo) explains how a well-designed information architecture can improve productivity, reduce frustration, and increase engagement among employees.

## #powerplatform 

- [How to Change Solution Owner in the Power Platform](https://dev.to/wyattdave/how-to-change-solution-owner-in-the-power-platform-1jnb) by [David Wyatt](https://dev.to/wyattdave) provides step-by-step instructions on how to change the owner of a solution in the Power Platform.

- [Teams Direct Message API with Power Automate](https://dev.to/johnnyreilly/teams-direct-message-api-with-power-automate-3m3g) by [John Reilly](https://dev.to/johnnyreilly) provides detailed instructions on how to set up the API connection and create a flow to send the messages.

- [The Yoda Guide](https://dev.to/balagmadhu/the-yoda-guide-2nd1) by [Bala Madhusoodhanan](https://dev.to/balagmadhu) offers advice on how to develop leadership skills and overcome obstacles, drawing on Yoda's wisdom and memorable quotes.

That's all for this week's roundup! Thanks for tuning in, and remember to keep the discussions lively and informative in our tags. 💬 If you have any suggestions for future topics, feel free to drop them in the comments below. See you next week! 👋
Electric Trucks Market 2022 Current Status And Future Prospects, Segmentation, Strategy, and Forecast to 2028
Published: 2023-05-08 13:20:10

According to new research study on Electric Trucks Market research report provides size, share, trends, analysis report contains all study material about market industry overview, growth, demand and forecast research in all over the world. The report also analyses the competitive structure of the Electric Trucks and provides the profiles of major players operating in the market. Growth inducing factors, market restraints and recent developments have also been analyzed in the report in order to provide deeper knowledge about the industry.
To Get Sample Copy of Report, Click Here – https://www.theinsightpartners.com/sample/TIPRE00025913/