投稿時間:2023-01-08 13:10:08 RSSフィード2023-01-08 13:00 分まとめ(11件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS AWSタグが付けられた新着投稿 - Qiita 【AWS】Route 53で新しいドメインを取得する https://qiita.com/grapefruit_0514/items/13dcb6ae79c8c610211d amazonroute 2023-01-08 12:59:51
GCP gcpタグが付けられた新着投稿 - Qiita Google Cloudアップデート (12/29/2022-1/4/2023) https://qiita.com/kenzkenz/items/bc1febfd08843f3bbf72 cloudsqldecmysql 2023-01-08 12:28:30
GCP gcpタグが付けられた新着投稿 - Qiita Google Cloudアップデート (12/22-12/28/2022) https://qiita.com/kenzkenz/items/a48c1241526d06f99ba8 cloud 2023-01-08 12:04:49
海外TECH DEV Community Flutter 3 の状態管理 (State、ステート): アプローチ (概念) https://dev.to/nabbisen/flutter-3-nozhuang-tai-guan-li-state-suteto-apuroti-gai-nian--2lmj Flutterは状態state、ステート管理よりもさらに上位の構想レベルで、宣言的な実装を志向していて、そのための専門ドキュメント「宣言的なUI英語」が公開されています。 2023-01-08 03:26:49
海外TECH DEV Community Running ChatGPT Locally using Docker Desktop https://dev.to/docker/running-chatgpt-locally-using-docker-desktop-2i31 Running ChatGPT Locally using Docker DesktopIt is possible to run Chat GPT locally on your own computer To do this you will need to install the OpenAI API client But before that you will need to obtain an API key from OpenAI To do this you need to visit the OpenAI API site and generate a secret key as shown below Next create the below sample Node js script that demonstrates how you can use the OpenAI API client to run Chat GPT locally const openai require openai Set your OpenAI API keyopenai apiKey YOUR API KEY Set the prompt for Chat GPTconst prompt What s your favorite color Set the model to use in this case Chat GPT const model chatbot Generate a response from Chat GPTopenai completions create engine model prompt prompt max tokens n stop temperature error response gt console log response choices text This script uses the openai completions create method to generate a response from Chat GPT based on the provided prompt You can adjust the max tokens and temperature parameters to control the length and creativity of the response respectively In order to test drive how OpenAI actually works I forked the Pet name generator app repository and tried to create my own version of Dockerized solution First I tried to bring up the app without using Docker just to ensure that it works on my local machine Clone the repositorygit clone Navigate into the project directorycd openai quickstart node Install the requirementsnpm install Make a copy of the example environment variables filecp env example envAdd your API key to the newly created env file Run the appnpm run buildYou should now be able to access the app at http localhost Running Pet Name Generator app using Docker DesktopLet us try to run the Pet Name Generator app in a Docker container To do this you will need to install Docker locally in your system I recommend using Docker Desktop which is free of cost for personal usage Create a new directoryOpen a terminal window and navigate to the location where you want to create your project directory Then run the following command to create a new directory mkdir chatbotCreate a Dockerfile In your project directory create a file called Dockerfile and add the following content to it FROM node Install the OpenAI API clientRUN npm install openai Copy the app code to the containerCOPY app Set the working directory to the app codeWORKDIR app Run the appCMD node app jsThis Dockerfile specifies the base image node to use for the Docker container and installs the OpenAI API client It also copies the app code to the container and sets the working directory to the app code Create an app js file In your project directory create a file called app js and add the following content to it const openai require openai Set your OpenAI API keyopenai apiKey YOUR API KEY Building the Chat GPT Docker Imagedocker build t ajeetraina chatbot docker Running the Chat GPT containerdocker run d p ajeetraina chatbot dockerIn my next blog post I will show how to run OpenAI as a Kubernetes Pod 2023-01-08 03:22:21
海外ニュース Japan Times latest articles Auto industry races into metaverse at CES https://www.japantimes.co.jp/news/2023/01/08/business/tech/cars-metaverse-ces/ expos 2023-01-08 12:33:04
海外ニュース Japan Times latest articles Bomb threat prompts plane’s emergency landing at Chubu Airport https://www.japantimes.co.jp/news/2023/01/08/national/jetstar-airlines-chubu-airport-emergency-landing/ Bomb threat prompts plane s emergency landing at Chubu AirportInvestigators said a phone call from Germany had been received around a m with a man claiming to have put kilograms of plastic explosives 2023-01-08 12:20:48
北海道 北海道新聞 少子化、政策整理後に財源論 首相「きめ細かく議論」 https://www.hokkaido-np.co.jp/article/784714/ 少子化対策 2023-01-08 12:24:52
北海道 北海道新聞 <コロナが変えたくらしの姿>第15部 認知症時代を生きる (1)長引く自粛 減った交流、進行に拍車 https://www.hokkaido-np.co.jp/article/784727/ 高校 2023-01-08 12:38:04
北海道 北海道新聞 W杯ジャンプ 勢藤9位、高梨10位 女子第11戦 https://www.hokkaido-np.co.jp/article/784732/ 高梨 2023-01-08 12:16:00
北海道 北海道新聞 カズ、ポルトガル2部へ移籍合意 55歳、サッカー元代表 https://www.hokkaido-np.co.jp/article/784730/ 三浦知良 2023-01-08 12:04:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)