<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sergio Sousa on Medium]]></title>
        <description><![CDATA[Stories by Sergio Sousa on Medium]]></description>
        <link>https://medium.com/@sergio.sousa?source=rss-2cdc132a9b9d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*iNZXtPVpCx8fhmFw.jpg</url>
            <title>Stories by Sergio Sousa on Medium</title>
            <link>https://medium.com/@sergio.sousa?source=rss-2cdc132a9b9d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 21:14:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sergio.sousa/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to add a super AI programming assistant to VS Code, similar to GitHub Copilot Chat, completely…]]></title>
            <link>https://medium.com/@sergio.sousa/how-to-add-a-super-ai-programming-assistant-to-vs-code-similar-to-github-copilot-chat-completely-5c27bcc13fc8?source=rss-2cdc132a9b9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c27bcc13fc8</guid>
            <category><![CDATA[vscode-extension]]></category>
            <category><![CDATA[assistente-virtual]]></category>
            <category><![CDATA[copilot-programming]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Sergio Sousa]]></dc:creator>
            <pubDate>Mon, 11 Dec 2023 14:10:20 GMT</pubDate>
            <atom:updated>2023-12-11T14:10:20.060Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to add a super AI programming assistant to VS Code, similar to GitHub Copilot Chat, completely open-source.</h3><p>In this article I will show you how to install and configure a super AI programming assistant capable of solving a challenge from the website: <a href="https://leetcode.com/">https://leetcode.com</a> , from medium level in 6 seconds and with explanations about the code, as shown in the image in real time below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LmRfllQaoDH2iypE.gif" /><figcaption>Real-time image of challenge resolution</figcaption></figure><p>The challenge in question was number 384 available at the link: <a href="https://leetcode.com/problems/shuffle-an-array/description/">https://leetcode.com/problems/shuffle-an-array/description/</a> and which can also be seen in the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*HTIGC8HDnH2djbnk.png" /><figcaption>Image from LeetCode challenge 384</figcaption></figure><p>It is also possible to use it to find errors or flaws in the code as shown in the image below, in which a Java code had a security flaw allowing “SQL Injection” to be used, the model used suggested the changes, which can be accepted or no, and explained why the changes were made:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*jJguQEVvorQIPN4i.png" /><figcaption>Example of correcting code with SQL Injection</figcaption></figure><p>The possibilities are countless, you can request that a section or the entire code be explained, you can refactor the code into another language, the model knows more than 80 programming languages, you can request that it generate the contents of a file docker-compose.yml to upload, for example, a MySQL version 5.7, request it to create a docker file with multi stages, etc.</p><p>Well, let&#39;s get to the point, in my research I tested several open-source VS Code extensions but the one I liked the most was the “continue” extension, for more information visit the link: <a href="https://continue.dev/">https://continue.dev</a> , the extension can be installed directly in VS Code, as shown in the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*L6Z--onjgh86Mt0M.png" /><figcaption>Image of how to install the extension in VS Code.</figcaption></figure><p>This extension works by configuring it to use the ChatGPT API, version 3.5 or 4 or another API that uses open-source LLM models, which will be the case in this article. had better performance and accuracy, its page is available at the link: <a href="https://deepseekcoder.github.io/">https://deepseekcoder.github.io</a> , the main advantages of this model are:</p><p><em>· Pre-trained on 2 trillion tokens in 80+ programming languages.</em></p><p><em>· Various model sizes (1.3B, 5.7B, 6.7B and 33B) to support different requirements.</em></p><p><em>· A window size of 16K, with project-level code support.</em></p><p><em>· State-of-the-art performance across open source models.</em></p><p><em>· Open source and free for research and commercial use.</em></p><p><em>· Support for “quantized” models in the AWQ standard ( </em><a href="https://github.com/mit-han-lab/llm-awq"><em>https://github.com/mit-han-lab/llm-awq</em></a><em> )</em></p><p><em>· Supported programming languages ​​are shown below:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*7Yf-bsqdqvYZ1c4J.png" /></figure><p>Once the extension and model have been chosen, all that remains is to choose the server that will make the inference on the model, this is also a crucial point as it will define the performance of the responses, among the servers I tested and there were many in different languages ​​such as: C, C++, Rust, Python, the one that presented the best performance was vLLM (link: <a href="https://github.com/vllm-project/vllm">https://github.com/vllm-project/vllm</a> ) made in Python with routines in C++ but which uses new technologies such as: “PagedAttention” which does the efficient management of GPU memory, CUDA kernels have been optimized and the ability to process requests in batch thus increasing the more efficient use of the GPU, thus increasing the processing speed by up to 24x compared to standard inference in Python, as shown in the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*oFpXHcITBFWy6brF.png" /><figcaption>vLLM performance image</figcaption></figure><p>Let&#39;s install the vLLM server and configure the extension, as a server I have a computer with a 12 generation Core I3 processor and 16GB of memory and with Linux Ubuntu Server 22.04 installed and RTX-3060 GPU with 12GB, let&#39;s go to the installation steps, if not If you are using Windows, try installing on WSL:</p><p>First you must install Python 3.10 and then determine which version of CUDA (Compute Unified Device Architecture) installed for GPU using the command below:</p><pre>nvidia-smi</pre><p>The command above should present a result similar to the image below, just look in the upper right corner for “Cuda Version” which in my case is 11.7:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*sb6gES3RAgXp4Is9.png" /></figure><p>If the version is 12 or higher use the command below:</p><pre>pip install vllm</pre><p>If the version is less than 12, as in my case, use the commands below:</p><pre>pip install https://github.com/vllm-project/vllm/releases/download/v0.2.2/vllm-0.2.2+cu118-cp310-cp310-manylinux1_x86_64.whl<br>pip uninstall torch -y<br>pip install torch --upgrade --index-url https://download.pytorch.org/whl/cu118</pre><p>After installation, run the command below to initialize the server, this command will download the huggingface.co hub model on the first run, which is approximately 4GB:</p><pre>python -m vllm.entrypoints.openai.api_server --model TheBloke/deepseek-coder-6.7B-instruct-AWQ --quantization awq --max-model-len 4096 --trust-remote-code --dtype auto --tokenizer-mode auto</pre><p>You should see a screen like the one below, informing you that the server is running on port 8000:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*BnfXSYRi61jLmlzx.png" /></figure><p>Now let&#39;s configure the “continue” extension in VS Code on Windows, open VS Code and click on the extension icon, as shown in the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*VDEHrpzgT3lpPE2u.png" /></figure><p>Click on the + circled in red in the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*V1SGnyBK19_BnZli.png" /></figure><p>Click on Models as shown in the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*kyrMNbHmk6uIssZO.png" /></figure><p>Scroll down until you find the model: DeepSeek-Coder and click on it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*37YUZ85bBFW1-cBE.png" /></figure><p>It will open the config.json file for editing, replace all the contents of the file with the one below, you should just change the “api_base” field with the IP of your server, save the config.json file, exit VS Code and enter again and that&#39;s it your extension should be working:</p><pre>{<br>  &quot;models&quot;: [<br>    {<br>      &quot;title&quot;: &quot;GPT-4&quot;,<br>      &quot;provider&quot;: &quot;openai-free-trial&quot;,<br>      &quot;model&quot;: &quot;gpt-4&quot;<br>    },<br>    {<br>      &quot;title&quot;: &quot;GPT-3.5-Turbo&quot;,<br>      &quot;provider&quot;: &quot;openai-free-trial&quot;,<br>      &quot;model&quot;: &quot;gpt-3.5-turbo&quot;<br>    },<br>    {<br>      &quot;title&quot;: &quot;DeepSeek&quot;,<br>      &quot;provider&quot;: &quot;openai-aiohttp&quot;,<br>      &quot;model&quot;: &quot;TheBloke/deepseek-coder-6.7B-instruct-AWQ&quot;,<br>      &quot;api_base&quot;: &quot;http://192.168.0.100:8000&quot;<br>    }<br>  ],<br>  &quot;model_roles&quot;: {<br>    &quot;default&quot;: &quot;DeepSeek&quot;,<br>    &quot;chat&quot;: &quot;DeepSeek&quot;,<br>    &quot;edit&quot;: &quot;DeepSeek&quot;,<br>    &quot;summarize&quot;: &quot;DeepSeek&quot;<br>  },<br>  &quot;system_message&quot;: &quot;You are an AI programming assistant, utilizing the DeepSeek Coder model, developed by DeepSeek Company, and you only answer questions related to computer science. For politically sensitive questions, security and privacy issues, and other non-computer science questions, you will refuse to answer.&quot;,<br>  &quot;completion_options&quot;: {<br>    &quot;temperature&quot;: 0.0,<br>    &quot;max_tokens&quot;: 1024<br>  },<br>  &quot;slash_commands&quot;: [<br>    {<br>      &quot;name&quot;: &quot;edit&quot;,<br>      &quot;description&quot;: &quot;Edit highlighted code&quot;,<br>      &quot;step&quot;: &quot;EditHighlightedCodeStep&quot;<br>    },<br>    {<br>      &quot;name&quot;: &quot;config&quot;,<br>      &quot;description&quot;: &quot;Customize Continue&quot;,<br>      &quot;step&quot;: &quot;OpenConfigStep&quot;<br>    },<br>    {<br>      &quot;name&quot;: &quot;comment&quot;,<br>      &quot;description&quot;: &quot;Write comments for the highlighted code&quot;,<br>      &quot;step&quot;: &quot;CommentCodeStep&quot;<br>    },<br>    {<br>      &quot;name&quot;: &quot;share&quot;,<br>      &quot;description&quot;: &quot;Download and share this session&quot;,<br>      &quot;step&quot;: &quot;ShareSessionStep&quot;<br>    },<br>    {<br>      &quot;name&quot;: &quot;cmd&quot;,<br>      &quot;description&quot;: &quot;Generate a shell command&quot;,<br>      &quot;step&quot;: &quot;GenerateShellCommandStep&quot;<br>    }<br>  ],<br>  &quot;custom_commands&quot;: [<br>    {<br>      &quot;name&quot;: &quot;test&quot;,<br>      &quot;prompt&quot;: &quot;Write a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don&#39;t edit any file.&quot;,<br>      &quot;description&quot;: &quot;Write unit tests for highlighted code&quot;<br>    }<br>  ]<br>}</pre><h3>Attention:</h3><p>Before using any AI programming assistant to help with coding in companies, check the company&#39;s policies regarding whether it can be used or not, even if it is like this locally, if in doubt, do not use it until you are sure it can be used.</p><h3>Conclusion:</h3><p>I&#39;m doing several tests with the challenges of the website: <a href="https://leetcode.com/">https://leetcode.com</a> and this model has performed very well, fast and accurate, but like all “Generative AI” it is subject to logic and syntax errors and it is up to us developers We analyze and test the generated codes to see if they comply with what was requested.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c27bcc13fc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Como adicionar no VS Code um super assistente de programação AI, semelhante ao GitHub Copilot Chat…]]></title>
            <link>https://medium.com/@sergio.sousa/como-adicionar-no-vs-code-um-super-assistente-de-programa%C3%A7%C3%A3o-ai-semelhante-ao-github-copilot-chat-ea7f9a6333af?source=rss-2cdc132a9b9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea7f9a6333af</guid>
            <category><![CDATA[ai-assisted-programming]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[co-pilot]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Sergio Sousa]]></dc:creator>
            <pubDate>Mon, 11 Dec 2023 13:18:22 GMT</pubDate>
            <atom:updated>2024-08-19T10:56:11.955Z</atom:updated>
            <content:encoded><![CDATA[<h3>Como adicionar no VS Code um super assistente de programação AI, semelhante ao GitHub Copilot Chat, totalmente open-source.</h3><p>Neste artigo vou mostrar como instalar e configurar um super assistente de programação AI capaz de resolver um desafio do site: <a href="https://leetcode.com/">https://leetcode.com</a>, do nível médio em 6 segundos e com explicações sobre o código, conforme mostra a imagem em tempo real abaixo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s7BFV0SRIShZoRBTF8oyWQ.gif" /><figcaption>Imagem em tempo real da resolução do desafio</figcaption></figure><p>O desafio em questão foi o de número 384 disponível no link: <a href="https://leetcode.com/problems/shuffle-an-array/description/">https://leetcode.com/problems/shuffle-an-array/description/</a> e que também pode ser visto na imagem abaixo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*XBAx00Q-0NE_rG4eMaS17w.png" /><figcaption>Imagem do desafio 384 do LeetCode</figcaption></figure><p>Também é possível utilizar para encontrar erros ou falhas no código conforme mostra a imagem abaixo, em que um código em java estava com uma falha de segurança possibilitando ser utilizado o “SQL Injection”, o modelo utilizado sugeriu as alterações, que podem ser aceitas ou não, e fez as explicações do porque das alterações:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k9tJ027VPbFC9EAJKr4y7w.png" /><figcaption>Exemplo de correção de um código com SQL Injection</figcaption></figure><p>As possibilidades são inumeras, voce pode solicitar que seja explicado um trecho ou todo o código, voce pode refatorar para um outra linguagem o codigo, o modelo conhece mais de 80 linguagens de programação, voce pode solicitar para que ele gere o conteudo de um arquivo docker-compose.yml para subir por exemplo um mysql na versão 5.7, solicitar que crie um arquivo docker com multi estágios e etc.</p><p>Bom vamos ao que interessa, em minhas pesquisas testei varias extensões do VS Code open-source mas a que mais gostei foi a extensão “continue”, para maiores informaçõe acesse o link: <a href="https://continue.dev/">https://continue.dev</a> , a extensão pode ser instalada diretamente no VS Code, conforme mostra a imagem abaixo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Tl1GANOtelsOvVMesE5RA.png" /><figcaption>Imagem de como instalar a extensão no VS Code.</figcaption></figure><p>Esta extensão funciona configurando a mesma para usar a API do ChatGPT, versão 3.5 ou 4 ou outra API que use modelos de LLM’s open-source, que será o caso deste artigo, dos modelos LLM’s especialistas em codificação que testei o DeepSeek Coder foi o que teve melhor desempenho e acertividade, a página do mesmo está disponível no link: <a href="https://deepseekcoder.github.io/">https://deepseekcoder.github.io</a> , as principais vantagens deste modelo são:</p><p><em>· Pré-treinado em 2 trilhões de tokens em mais de 80 linguagens de programação.</em></p><p><em>· Vários tamanhos de modelo (1,3B, 5,7B, 6,7B e 33B) para suportar diferentes requisitos.</em></p><p><em>· Um tamanho de janela de 16K, com suporte ao código em nível de projeto.</em></p><p><em>· Desempenho de última geração entre modelos de código aberto.</em></p><p><em>· Código aberto e gratuito para pesquisa e uso comercial.</em></p><p><em>· Suporte a modelos “quantized” no padrão AWQ ( </em><a href="https://github.com/mit-han-lab/llm-awq"><em>https://github.com/mit-han-lab/llm-awq</em></a><em> )</em></p><p><em>· Linguagens de programação suportadas, são mostradas abaixo:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*yddcSEdFsI80762A.png" /></figure><p>Escolhidos a extensão e o modelo, falta a escolha do servidor que fará a inferencia no modelo, este também é um ponto crucial pois este definirá a performance das respostas, dentre os servidores que testei e foram muitos em diversas linguagens como: C, C++, Rust, Python, o que apresentou a melhor performance foi o vLLM (link: <a href="https://github.com/vllm-project/vllm">https://github.com/vllm-project/vllm</a>) feito em Python com rotinas em C++ mas que utiliza novas tecnologias como: “PagedAttention” que faz o gerenciamento eficiente da memória da GPU, CUDA kernels foram otimizados e a capacidade de processar as requisições em lote aumentando assim a utilização mais eficiente da GPU, aumentando assim em até 24x a velocidade de processamento em comparação a inferencia padrão em Python, conforme mostra a imagem abaixo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ocHrp0UF8PL-22XF1BB-KQ.png" /><figcaption>Imagem da performance do vLLM</figcaption></figure><p>Vamos a instalação do servidor vLLM e configuração da extensão, como servidor tenho um computador com processador Core I3 de 12 geração e 16GB de memória e com linux Ubuntu Server 22.04 instalado e GPU RTX-3060 com 12GB, vamos aos passos da instalação, se no seu caso estiver usando Windows, tente instalar no WSL:</p><p>Primeiramente deverá ter instalar o Python 3.10 e depois determinar qual versão do CUDA(Compute Unified Device Architecture) instalado para GPU através do comando abaixo:</p><pre>nvidia-smi</pre><p>O comando acima deve apresentar um resultado semelhante a imagem abaixo, basta olhar no canto superior direito o “Cuda Version” que no meu caso é 11.7:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*POU1Lb7SUb9BcgHIyE9aOg.png" /></figure><p>Se a versão for 12 ou superior use o comando abaixo:</p><pre>pip install vllm</pre><p>Se a versão for inferior a 12, como no meu caso, use os comandos abaixo:</p><pre>pip install https://github.com/vllm-project/vllm/releases/download/v0.2.2/vllm-0.2.2+cu118-cp310-cp310-manylinux1_x86_64.whl<br>pip uninstall torch -y<br>pip install torch --upgrade --index-url https://download.pytorch.org/whl/cu118</pre><p>Após a instalação execute o comando abaixo para inicializar o servidor, este comando irá baixar na primeira execução o modelo do hub huggingface.co que tem aproximadamente 4GB:</p><pre>python -m vllm.entrypoints.openai.api_server --model TheBloke/deepseek-coder-6.7B-instruct-AWQ --quantization awq --max-model-len 4096 --trust-remote-code --dtype auto --tokenizer-mode auto</pre><p>Deverá apresentar uma tela como abaixo, informando que o servidor está funcionando na porta 8000:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KLqoJajKP3nlZP7qUS_Ldw.png" /></figure><p>Agora vamos configurar a extensão “continue” no VS Code do Windows, abra o VS Code e clique no ícone da extensão, conforme mostra a imagem abaixo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nIg2KmdkrwJHvT3oqQbieQ.png" /></figure><p>Clique no + circulado de vermelho na imagem abaixo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q5cg_91Y_unVTCOEu_X7NQ.png" /></figure><p>Clique em Models conforme a imagem abaixo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wu4jXbpfcZ11iP1MQbtyWQ.png" /></figure><p>Role a tela até achar o modelo: DeepSeek-Coder e clique no mesmo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k_aH5bVqVrvkk0p9eavXkg.png" /></figure><p>Vai abrir o arquivo config.json para edição substitua todo o conteúdo do arquivo pelo abaixo, você deverá apenas alterar o campo “api_base” com o IP do seu servidor, salve o arquivo config.json, saia do VS Code e entre novamente e pronto sua extensão deverá estar funcionando:</p><pre>{<br>  &quot;models&quot;: [<br>    {<br>      &quot;title&quot;: &quot;GPT-4&quot;,<br>      &quot;provider&quot;: &quot;openai-free-trial&quot;,<br>      &quot;model&quot;: &quot;gpt-4&quot;<br>    },<br>    {<br>      &quot;title&quot;: &quot;GPT-3.5-Turbo&quot;,<br>      &quot;provider&quot;: &quot;openai-free-trial&quot;,<br>      &quot;model&quot;: &quot;gpt-3.5-turbo&quot;<br>    },<br>    {<br>      &quot;title&quot;: &quot;DeepSeek&quot;,<br>      &quot;provider&quot;: &quot;openai-aiohttp&quot;,<br>      &quot;model&quot;: &quot;TheBloke/deepseek-coder-6.7B-instruct-AWQ&quot;,<br>      &quot;api_base&quot;: &quot;http://192.168.0.100:8000&quot;<br>    }<br>  ],<br>  &quot;model_roles&quot;: {<br>    &quot;default&quot;: &quot;DeepSeek&quot;,<br>    &quot;chat&quot;: &quot;DeepSeek&quot;,<br>    &quot;edit&quot;: &quot;DeepSeek&quot;,<br>    &quot;summarize&quot;: &quot;DeepSeek&quot;<br>  },<br>  &quot;system_message&quot;: &quot;You are an AI programming assistant, utilizing the DeepSeek Coder model, developed by DeepSeek Company, and you only answer questions related to computer science. For politically sensitive questions, security and privacy issues, and other non-computer science questions, you will refuse to answer.&quot;,<br>  &quot;completion_options&quot;: {<br>    &quot;temperature&quot;: 0.0,<br>    &quot;max_tokens&quot;: 1024<br>  },<br>  &quot;slash_commands&quot;: [<br>    {<br>      &quot;name&quot;: &quot;edit&quot;,<br>      &quot;description&quot;: &quot;Edit highlighted code&quot;,<br>      &quot;step&quot;: &quot;EditHighlightedCodeStep&quot;<br>    },<br>    {<br>      &quot;name&quot;: &quot;config&quot;,<br>      &quot;description&quot;: &quot;Customize Continue&quot;,<br>      &quot;step&quot;: &quot;OpenConfigStep&quot;<br>    },<br>    {<br>      &quot;name&quot;: &quot;comment&quot;,<br>      &quot;description&quot;: &quot;Write comments for the highlighted code&quot;,<br>      &quot;step&quot;: &quot;CommentCodeStep&quot;<br>    },<br>    {<br>      &quot;name&quot;: &quot;share&quot;,<br>      &quot;description&quot;: &quot;Download and share this session&quot;,<br>      &quot;step&quot;: &quot;ShareSessionStep&quot;<br>    },<br>    {<br>      &quot;name&quot;: &quot;cmd&quot;,<br>      &quot;description&quot;: &quot;Generate a shell command&quot;,<br>      &quot;step&quot;: &quot;GenerateShellCommandStep&quot;<br>    }<br>  ],<br>  &quot;custom_commands&quot;: [<br>    {<br>      &quot;name&quot;: &quot;test&quot;,<br>      &quot;prompt&quot;: &quot;Write a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don&#39;t edit any file.&quot;,<br>      &quot;description&quot;: &quot;Write unit tests for highlighted code&quot;<br>    }<br>  ]<br>}</pre><h3>Atenção:</h3><p>Antes de usar qualquer assistente de programação AI para ajudar com a codificação em empresas, verifique as politicas da empresa quanto se pode ser utilizado ou não, mesmo que seja como este localmente, na dúvida não utilize até ter a certeza que possa utilizar.</p><h3>Conclusão:</h3><p>Estou fazendo varios testes com os desafios do site: <a href="https://leetcode.com/">https://leetcode.com</a> e este modelo tem se saído muito bem, rápido e preciso, mas como toda “Generative AI” está sujeita a erros de lógicas e sintaxes e cabe a nós desenvolvedores analisarmos e testarmos os códigos gerados se estão de acordo com o solicitado.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea7f9a6333af" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>