How to integrate ChatGPT with C# and .NET Core #ChatGPT #OpenAI #DotNetCore

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi guys welcome to my session in this session we are going to discuss how to integrate upon AI chart GPT with dotnet core csarc Feud HB I have created a video session on how to use charge GPT and how to earn 100 per day without any scale investment if you want to watch this session I will give this link on video description as well as the I button please check it out today we are going to integrate our chart GPT with csap and Dot net core I am going to use dotnet core 6.0 web API application for this demonstration before starting the session guide if you are new to my Channel please hit the Subscribe button and ring the bell icon for future notifications without wasting one more time let's get started so I am using here Visual Studio 2022 two zero two two and Dot net core 6.0 web API so I'm creating a new project after completion of this video session I am going to give the link of this source code in the video description you can download it so I'm using dot net core 6.0 web API and let's give charge GPT which C sharp okay click on next so I'm creating dot net core 6.0 long term support for now I am no need of https keeping the controller and upon IPA which is swag Buckle or Swagger click on create but for few seconds it will create our basic template for DOT net core 6.0 web API then we will integrate okay our application created in the solution Explorer you can see controller properties this is the weather forecast service model everything all right now thing we need to install a new get package which is upon AI so go to tools new get package manager nougat package manager console so our console is open let it initialize now to initializing here we need to add install hyper package space upon AI hit enter and it will install the okay it got installed done our nuget package is installed now let's create our one more controller so I am going to add a controller here which is a API controller empty controller r I am giving the controller image GPT controller okay now we need to go to open AI web portal and we need to generate our security key or access key for now I know need of this route okay let's open AI so this is open AI so if you go to API section here you can log in you can sign up I have already logged in with my Gmail account so I can log in with it so I'm continuing with my Google wait for few seconds it will create it will happen once we log into our open API account we need to go to here account and here we have view API keys so once we go to there so I I have already created API Keys we can create one more also and after creating this video obviously I'm going to delete my API key so don't worry next thing is those steps second step is creating a open AI account and go to the view API keys in this section okay now we have added nuget package upon AI in our application in this controller I am going to R using upon AI underscore API using upon AI underscore API dot composition now I am going to write a API for this so it will be HTTP get and the API name is U charge GPT it is accepting a parameter that is a query next next part is we need to create a upon AI variable equal to Nu upon AI it takes the security key in this security key go to the portal okay let me copy this security key so the object name called Nu upon AI here it takes the security key which is created we got from our open AI web total next is we can create a complete some request new completion request here we can accomplish request dot prompt The Prompt will be the query or the parameter website next compression model request dot model equal to completion request so this completion request upon AI API dot models Dot model dot DaVinci text DaVinci text is chart GPT 3 model right so we have configured our prompt we have configured our model next section we created a bar completion upon apai which is our open AI API dot completion dot create completion async where we are posting this completion request we just configured next thing is inside a for each loop I am completion equal to completions dot result dot completion so this is a string I need to declare here so it's a blank stream inside this it is adding the text and it will return the output let's run the application and see how it is behaving I am coming up with a new session about chart GPT and CSR on Advanced programming actually so guys please stay tuned to my channel you will not be satisfied so our application got around this is a get click on try it out so let's you can see here we didn't give any kind of result orientation so we just post our query then we are hitting the apis create completion async then we are getting the result so here I am going to give a something like what is life click on execute life is Meaningful existence characterized by growth development and learning this is one result so next I am again clicking execute life is a condition of existing or leaving that state of being alive so every time I put I execute my API it's randomly generating the text and showing to my life your condition being alive the experience of having consecrations right so here I can give also what is C sub C sharp from C sharp is general purpose right so what is we can give chart GPT right they are getting our result so in this way we can integrate charge GPT completion to our dotnet core and csap foreign guys I hope you like this session if you do give me a thumbs up and share this video with your friends and if you have any comment and suggestion please share with me in my in the comment box thank you very much
Info
Channel: Biswa Ranjan
Views: 26,666
Rating: undefined out of 5
Keywords: integrate ChatGPT with .Net Core and C#, integrate ChatGPT with .Net Core, integrate ChatGPT with C#, ChatGPT with .Net, chatgpt with C#, C#, ChatGPT, natural language processing, NLP, language model, API, programming, development, integration, tutorial, coding, software development, chatbot, virtual assistant, language understanding, C# developers, AI, machine learning, OpenAI, state-of-the-art NLP, csharp space, chat gpt, chatgpt explained, web development
Id: VchdPEg2aWI
Channel Id: undefined
Length: 10min 5sec (605 seconds)
Published: Sun Feb 05 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.