{"id":89,"date":"2023-12-25T22:23:21","date_gmt":"2023-12-25T22:23:21","guid":{"rendered":"https:\/\/thibocuveele.be\/?p=89"},"modified":"2024-06-10T20:50:04","modified_gmt":"2024-06-10T20:50:04","slug":"how-to-consume-openai-api-with-deno","status":"publish","type":"post","link":"https:\/\/thibocuveele.be\/?p=89","title":{"rendered":"How to consume OpenAI API with Deno"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">On the 19th of December, I went to a small event at Howest.<br>A couple of weeks prior, the whole school got an email with an invitation to this event. And knowing we could use the topic of this event in one of our projects for school, I couldn&#8217;t refuse this opportunity to learn more about the OpenAI API.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When the day arrived, I joined the meeting with a friend of mine that was also involved in the project I mentioned earlier.<br>We were greeted by the two students that organized this event. They told us that mr. Casier (a lecturer of ours) was going to give us the explanation that evening. Which was a pleasant surprise, because i actually liked receiving courses from mr. Casier in previous years. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We first got introduced to the chat functions of ChatGPT, which of course was nothing new to students in informatics.<br>We got shown how to properly write prompts to receive the best output possible from these AI-tools.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After that, we were shown what tools like DALL-E can do. And to my surprise, the images that were generated were from extremely high quality. Not only the resolution of course, but they actually showed everything that was asked for and even more &#8230;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Deno<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">But then, the real new stuff came. Deno.<br>It&#8217;s software that takes on the role of both runtime and package manager within a single executable. This of course is different than for example Node (which was created by the same creator).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Deno actually was announced by Ryan Dahl in his talk &#8220;10 things i Regret About Node.js&#8221;. And it really is an improvement over Node.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We got to see a detailed talk about what basic features were possible with almost no real difficult code at all. <\/p>\n\n\n\n<div class=\"wp-block-media-text is-stacked-on-mobile\"><figure class=\"wp-block-media-text__media\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/thibocuveele.be\/wp-content\/uploads\/2023\/12\/Afbeelding-van-WhatsApp-op-2023-12-25-om-17.15.06_1fdf1eaf.jpg\" alt=\"\" class=\"wp-image-90 size-full\" srcset=\"https:\/\/thibocuveele.be\/wp-content\/uploads\/2023\/12\/Afbeelding-van-WhatsApp-op-2023-12-25-om-17.15.06_1fdf1eaf.jpg 1024w, https:\/\/thibocuveele.be\/wp-content\/uploads\/2023\/12\/Afbeelding-van-WhatsApp-op-2023-12-25-om-17.15.06_1fdf1eaf-300x225.jpg 300w, https:\/\/thibocuveele.be\/wp-content\/uploads\/2023\/12\/Afbeelding-van-WhatsApp-op-2023-12-25-om-17.15.06_1fdf1eaf-768x576.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<p class=\"wp-block-paragraph\"> <h4 class=\"wp-block-heading\">Conclusion<\/h4><p>In short, I was pleasantly surprised with the presentation we got from mr. Casier. The topic was very interesting to our group. We were actually struggling with something that was mentioned in this presentation, which made things more clear and showed us that we shouldn&#8217;t look into it any longer. (The problem can&#8217;t be resolved at the moment, it will probably be fixed in the near future due to updates.)<\/p><\/p>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>On the 19th of December, I went to a small event at Howest.A couple of weeks prior, the whole school got an email with an invitation to this event. And knowing we could use the topic of this event in one of our projects for school, I couldn&#8217;t refuse this opportunity to learn more about &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/thibocuveele.be\/?p=89\"> <span class=\"screen-reader-text\">How to consume OpenAI API with Deno<\/span> Lees verder &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/thibocuveele.be\/index.php?rest_route=\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thibocuveele.be\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thibocuveele.be\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thibocuveele.be\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thibocuveele.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=89"}],"version-history":[{"count":2,"href":"https:\/\/thibocuveele.be\/index.php?rest_route=\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":92,"href":"https:\/\/thibocuveele.be\/index.php?rest_route=\/wp\/v2\/posts\/89\/revisions\/92"}],"wp:attachment":[{"href":"https:\/\/thibocuveele.be\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thibocuveele.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thibocuveele.be\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}