Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
ChatGPT APIを使ったツール作成日記 / Diary of tool creation...
Search
yayoi_dd
July 18, 2024
Technology
1
2.5k
ChatGPT APIを使ったツール作成日記 / Diary of tool creation using ChatGPT API
弥生株式会社 もくテク
AIを活用した業務効率化 ~ChatGPT導入事例集~(2024/07/18)
https://mokuteku.connpass.com/event/322629/
yayoi_dd
July 18, 2024
Tweet
Share
More Decks by yayoi_dd
See All by yayoi_dd
【弥生】20250130_AWSマルチアカウント運用セミナー登壇資料
yayoi_dd
1
240
Amazon OpenSearchのコスト最適化とZeroETLへの期待 / Amazon OpenSearch Cost Optimization and ZeroETL Expectations
yayoi_dd
1
39
フロントエンドとバックエンド非同期連携パターンのセッションを見てきた話 / Talk about seeing a session on front-end and back-end asynchronous coordination patterns
yayoi_dd
0
41
reInventで学んだWebシステム運用のBadDayへの備え方 / How to Prepare for BadDay in Web System Operations Learned at reInvent
yayoi_dd
0
29
AWS reInventで感じた世界に見る生成AIの競争 / Competition in Generative AI as Seen Around the World at AWS reInvent
yayoi_dd
0
37
データの意味を適切に伝えましょう データ可視化のお手本/Conveying the Meaning of Data Appropriately: Exemplary Data Visualization
yayoi_dd
0
50
「失敗」から学ぶこと ~ソフトウェア開発と失敗の歴史~/Learning from 'Failures': The History of Software Development and Failures
yayoi_dd
0
52
ソフトウェアアーキテクチャーの基礎 エンジニアリングに基づく体系的アプローチ/Fundamentals of Software Architecture: A Systematic Approach Based on Engineering
yayoi_dd
0
54
ソフトウェア開発における「パーフェクトな意思決定」/Perfect Decision-Making in Software Development
yayoi_dd
3
3k
Other Decks in Technology
See All in Technology
CZII - CryoET Object Identification 参加振り返り・解法共有
tattaka
0
380
リーダブルテストコード 〜メンテナンスしやすい テストコードを作成する方法を考える〜 #DevSumi #DevSumiB / Readable test code
nihonbuson
11
7.3k
偶然 × 行動で人生の可能性を広げよう / Serendipity × Action: Discover Your Possibilities
ar_tama
1
1.1k
ビジネスモデリング道場 目的と背景
masuda220
PRO
9
560
エンジニアのためのドキュメント力基礎講座〜構造化思考から始めよう〜(2025/02/15jbug広島#15発表資料)
yasuoyasuo
18
6.9k
OpenID BizDay#17 KYC WG活動報告(法人) / 20250219-BizDay17-KYC-legalidentity
oidfj
0
250
レビューを増やしつつ 高評価維持するテクニック
tsuzuki817
1
740
Developer Summit 2025 [14-D-1] Yuki Hattori
yuhattor
19
6.3k
『衛星データ利用の方々にとって近いようで触れる機会のなさそうな小話 ~ 衛星搭載ソフトウェアと衛星運用ソフトウェア (実物) を動かしながらわいわいする編 ~』 @日本衛星データコミニティ勉強会
meltingrabbit
0
150
PHPで印刷所に入稿できる名札データを作る / Generating Print-Ready Name Tag Data with PHP
tomzoh
0
110
開発組織のための セキュアコーディング研修の始め方
flatt_security
3
2.4k
管理者しか知らないOutlookの裏側のAIを覗く#AzureTravelers
hirotomotaguchi
2
440
Featured
See All Featured
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
129
19k
GraphQLとの向き合い方2022年版
quramy
44
13k
Being A Developer After 40
akosma
89
590k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
6
550
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.6k
Building a Scalable Design System with Sketch
lauravandoore
461
33k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
133
33k
VelocityConf: Rendering Performance Case Studies
addyosmani
328
24k
Automating Front-end Workflow
addyosmani
1368
200k
Embracing the Ebb and Flow
colly
84
4.6k
Transcript
ChatGPT APIを使ったツール作成日記 開発本部 縞居伸一
便利なChatGPT • 一方で、煩わしい点もある • プロンプトの準備が必要 • ChatGPTにログインが 必要 • 回答を指定の場所へ保
存 • 情報漏洩のリスク • ChatGPT APIを使うことで、 それらの煩わしい点を解決し、 業務効率化に貢献できない か
ChatGPT APIを始めるために必要なこと ①APIキーの取得 ②支払方法の設定(API使用料金支払の設定) • APIは従量課金制 • 支払上限額や閾値の設定も推奨
APIキーの取得手順 1.OpenAIアカウント作成後、アカウントにログイン https://platform.openai.com/login 2.ログイン後、以下で支払方法の設定 2.1:メニューの「Setting」>「Billing」のページを開く 2.2:「Payment methods」で支払方法の登録 2.3:登録後、「Add to credit
balance」で金額をチャージする 3.上記課金後、以下でAPIキーを取得 3.1:メニューの「Dashboard」>「API Keys」のページを開く 3.2:「Create new secret key」でAPIキーを作成
開発環境準備 ①Pythonのインストール →公式HP(https://www.python.org/downloads/)でダウンロード ②Visual Studio codeのインストール →公式HP(https://code.visualstudio.com/download/)でダウンロード ③PIPのインストール →コマンドプロンプトで「py –m
pip install pypdf2」と入力 ④OpenAIライブラリのインストール →コマンドプロンプトで「py –m pip install --upgrade openai 」と入力
コードを作成
APIを使って、さら にできること • ワークフロー作成 • WEBアプリとして公開 • Flaskとhtml • Lineのボットに組み込
む
最後に… ★超重要: ChatGPTに個人情報や機密情報を入力しないようにしましょう 情報漏洩を防ぐために ・法人向けChatGPT Enterpriseを契約 ・「Chat History & Training」の設定をオフ
・ChatGPT APIを利用する 参考(OpenAIのページ):https://help.openai.com/en/articles/5722486-how-your-data-is- used-to-improve-model-performance