SlideShare une entreprise Scribd logo
1  sur  16
📓 JupyChat
Writing a ChatGPT plugin in Python that executes Python
Elijah Wilson tizz98
Me 👋
Elijah (Eli) Wilson
Staff Software Engineer & Tech Lead
at Noteable.io
A person with too many side projects
Lives in Brighton, MI
tizz98
@elijahwilson@fosstodon.org
ChatGPT
● Large Language Model
● Built by OpenAI
● Recently added plugin support
ChatGPT Plugins
“Do stuff outside of ChatGPT”
● Wolfram
● Instacart
● OpenTable
● Zillow
● Redfin
● Kayak
● Noteable
JupyChat plugin
● Authenticate with OAuth using
Auth0
● Execute code using Jupyter
● Show images from results of
queries, such as charts
What goes into a
plugin?
1. Authentication
2. OpenAPI specification
All of this is defined in a single file for
ChatGPT to discover: ai-plugin.json.
High Level
Architecture
● User interacts with ChatGPT
● ChatGPT calls our API using
known endpoints from OpenAPI
document
● Our FastAPI server creates and
runs Jupyter notebooks using
ZMQ
ai-plugin.json
Here’s what we have so far…
● offline_access allows for
refresh tokens
● openai
verification_tokens will
be provided by OpenAI after
installing the plugin
● is_user_authenticated
should be dynamic
Let’s make it in FastAPI! ⚡️
Install in ChatGPT
● Select “Plugins”
● Develop your own plugin
● Use ngrok to test OAuth
Add Auth0 Secrets
● Client ID
● Client Secret
Post-setup config
● Add the callback URL as an
“Allowed Callback URL” in
Auth0
● Update your .env with the new
verification token
Try it out! 😎
Ethics in AI:
Implications for
ChatGPT Plugins
● Ethical considerations specific
to ChatGPT plugins
● Importance of safeguards in
plugin design
● Balancing utility and safety
Noteable.io Plugin
● Build Jupyter notebooks without
running Jupyter
● Execute code and get results
back in ChatGPT
● Learn new things!
● Get started at
https://app.noteable.io
https://www.youtube.com/watch?v=Vmg3gBNCYPw
Thank you! 🎉
https://github.com/tizz98/jupychat
https://fosstodon.org/@elijahwilson
https://app.noteable.io

Contenu connexe

Similaire à JupyChat - Michigan Python

POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE teachersduniya.com
 
Introduction to Python Programming - I
Introduction to Python Programming  - IIntroduction to Python Programming  - I
Introduction to Python Programming - IArnab Chakraborty
 
Modern Web 2016: Using Golang to build a smart IM Bot
Modern Web 2016: Using Golang to build a smart IM Bot Modern Web 2016: Using Golang to build a smart IM Bot
Modern Web 2016: Using Golang to build a smart IM Bot Evan Lin
 
Freedomotic v5.5 Changelog
Freedomotic v5.5 ChangelogFreedomotic v5.5 Changelog
Freedomotic v5.5 Changelogfreedomotic
 
Android Study Jam
Android Study Jam Android Study Jam
Android Study Jam DSCMESCOE
 
2020 and Beyond: Navigating Claris Transformations & Innovations Post-Pandemic
2020 and Beyond: Navigating Claris Transformations & Innovations Post-Pandemic2020 and Beyond: Navigating Claris Transformations & Innovations Post-Pandemic
2020 and Beyond: Navigating Claris Transformations & Innovations Post-PandemicDB Services
 
Getting Started with ChatGPT.pdf
Getting Started with ChatGPT.pdfGetting Started with ChatGPT.pdf
Getting Started with ChatGPT.pdfManish Chopra
 
iThome Chatbot Day: 透過 Golang 無痛建置機器學習聊天機器人
iThome Chatbot Day: 透過 Golang 無痛建置機器學習聊天機器人iThome Chatbot Day: 透過 Golang 無痛建置機器學習聊天機器人
iThome Chatbot Day: 透過 Golang 無痛建置機器學習聊天機器人Evan Lin
 
How Python Programming Works?- GICSEH.pptx
How Python Programming Works?- GICSEH.pptxHow Python Programming Works?- GICSEH.pptx
How Python Programming Works?- GICSEH.pptxGICSEH
 
Mastering the Interview: 50 Common Interview Questions Demystified
Mastering the Interview: 50 Common Interview Questions DemystifiedMastering the Interview: 50 Common Interview Questions Demystified
Mastering the Interview: 50 Common Interview Questions DemystifiedMalcolmDupri
 
Piyush Mishra(191381030040).pdf
Piyush Mishra(191381030040).pdfPiyush Mishra(191381030040).pdf
Piyush Mishra(191381030040).pdfPiyush Mishra
 
Django on app engine
Django on app engineDjango on app engine
Django on app enginebenpotato
 
Difference between python and cython
Difference between python and cythonDifference between python and cython
Difference between python and cythonMindfire LLC
 
TYPO3 responsive bootstrap basepackage T3ee presentation 2013 romania
TYPO3 responsive bootstrap basepackage T3ee presentation 2013 romaniaTYPO3 responsive bootstrap basepackage T3ee presentation 2013 romania
TYPO3 responsive bootstrap basepackage T3ee presentation 2013 romaniaRobert Lindh
 
What we got done in the last year in Piwik
What we got done in the last year in PiwikWhat we got done in the last year in Piwik
What we got done in the last year in Piwikpiwik
 

Similaire à JupyChat - Michigan Python (20)

POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE
 
Introduction to Python Programming - I
Introduction to Python Programming  - IIntroduction to Python Programming  - I
Introduction to Python Programming - I
 
Modern Web 2016: Using Golang to build a smart IM Bot
Modern Web 2016: Using Golang to build a smart IM Bot Modern Web 2016: Using Golang to build a smart IM Bot
Modern Web 2016: Using Golang to build a smart IM Bot
 
Freedomotic v5.5 Changelog
Freedomotic v5.5 ChangelogFreedomotic v5.5 Changelog
Freedomotic v5.5 Changelog
 
Android Study Jam
Android Study Jam Android Study Jam
Android Study Jam
 
2020 and Beyond: Navigating Claris Transformations & Innovations Post-Pandemic
2020 and Beyond: Navigating Claris Transformations & Innovations Post-Pandemic2020 and Beyond: Navigating Claris Transformations & Innovations Post-Pandemic
2020 and Beyond: Navigating Claris Transformations & Innovations Post-Pandemic
 
Getting Started with ChatGPT.pdf
Getting Started with ChatGPT.pdfGetting Started with ChatGPT.pdf
Getting Started with ChatGPT.pdf
 
iThome Chatbot Day: 透過 Golang 無痛建置機器學習聊天機器人
iThome Chatbot Day: 透過 Golang 無痛建置機器學習聊天機器人iThome Chatbot Day: 透過 Golang 無痛建置機器學習聊天機器人
iThome Chatbot Day: 透過 Golang 無痛建置機器學習聊天機器人
 
How Python Programming Works?- GICSEH.pptx
How Python Programming Works?- GICSEH.pptxHow Python Programming Works?- GICSEH.pptx
How Python Programming Works?- GICSEH.pptx
 
Mastering the Interview: 50 Common Interview Questions Demystified
Mastering the Interview: 50 Common Interview Questions DemystifiedMastering the Interview: 50 Common Interview Questions Demystified
Mastering the Interview: 50 Common Interview Questions Demystified
 
Pygtk
PygtkPygtk
Pygtk
 
Piyush Mishra(191381030040).pdf
Piyush Mishra(191381030040).pdfPiyush Mishra(191381030040).pdf
Piyush Mishra(191381030040).pdf
 
ppt summer training ug.pptx
ppt summer training ug.pptxppt summer training ug.pptx
ppt summer training ug.pptx
 
Ik in action
Ik in actionIk in action
Ik in action
 
Kivy report
Kivy reportKivy report
Kivy report
 
Django on app engine
Django on app engineDjango on app engine
Django on app engine
 
Difference between python and cython
Difference between python and cythonDifference between python and cython
Difference between python and cython
 
TYPO3 responsive bootstrap basepackage T3ee presentation 2013 romania
TYPO3 responsive bootstrap basepackage T3ee presentation 2013 romaniaTYPO3 responsive bootstrap basepackage T3ee presentation 2013 romania
TYPO3 responsive bootstrap basepackage T3ee presentation 2013 romania
 
What we got done in the last year in Piwik
What we got done in the last year in PiwikWhat we got done in the last year in Piwik
What we got done in the last year in Piwik
 
Iotivity atmel-20150328rzr
Iotivity atmel-20150328rzrIotivity atmel-20150328rzr
Iotivity atmel-20150328rzr
 

Dernier

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 

Dernier (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

JupyChat - Michigan Python

Notes de l'éditeur

  1. Ethics play a crucial role in the development and deployment of Artificial Intelligence. It is important to consider and address ethical issues to ensure the responsible use of AI. Key ethical principles in AI include: Transparency: AI systems should be transparent and explainable. Fairness: AI systems should not result in unfair outcomes and should avoid perpetuating biases. Privacy: AI systems should respect the privacy of individuals and handle data responsibly. Accountability: There should be mechanisms for holding AI systems and their operators accountable for their actions. However, there are potential ethical challenges associated with AI, such as: Bias: AI systems can unintentionally perpetuate or even exacerbate existing societal biases. Misuse: There is a risk of AI technologies being used in harmful or malicious ways. Privacy breaches: The use of large datasets can potentially lead to privacy breaches and misuse of personal data.
  2. When it comes to ChatGPT plugins, there are certain ethical considerations that are particularly relevant. First, it is important to design safeguards into plugins to prevent misuse and harmful actions. For example, there could be risks associated with plugins taking harmful or unintended actions, increasing the capabilities of bad actors, or misusing information sent to the plugin. To mitigate these risks, safeguards need to be implemented in the plugin design from day one​1​. Balancing utility and safety is also crucial. While plugins can greatly enhance the utility of ChatGPT by giving it access to up-to-date information, enabling it to run computations, or use third-party services, it is important to ensure that these capabilities do not compromise the safety and privacy of users​1​. Lastly, transparency is key. Users should be able to understand how and when plugins are operating as part of the user experience​1​.