AI Collaboration
Posted: Tue Feb 18, 2025 7:00 pm
I've just had my first programming collaboration in years, and it was a great experience.
Yes, it was with an AI, ChatGPT to be precise. This was more than accessing a reference tool or using an advanced search engine; I would describe it as working with a junior programmer with advanced programming knowledge but less experience (won't always be the case).
How it started:
• I was asked by a friend who is fully immersed in the AI culture, how hard would it be to incorporate a simple AI prompt into his company's website; within a day I had a solution including some demo code; more importantly my interest was piqued.
• I Created a ChatGPT account to access the API and budgeted $5.00 for testing.
Note: By the end of my four-week dive into the API which included thousands of test requests, less than $1.00 was used.
For the next three weeks I collaborated with the AI to create my own ChatGPT PWA, the following was the result:
• All the ChatGPT responses are generated server side, securing the API Key.
• A server-side database was setup to save requests when in Instruction mode.
• A Service Worker was written to handle offline caching and updates, a requirement when writing a PWA.
• The app includes an interface to the Tiktoken Python module written by OpenAI, used to convert text into tokens.
• The app works the same on an iPhone as it does a Windows laptop.
• The app includes the following features:
➤ Dictation: use your voice to fill-in the Context and Instruction fields.
➤ Paste text and images from Clipboard.
➤ Open an input window to attach a text or image file.
➤ Conversation Mode: Previous requests and responses are remembered to continue a dialog.
➤ Narration: The computer reads aloud the returned response, highlighting each word as it's read.
➤ Enter a URL to examine a webpage source code.
➤ Enter a URL to examine an online image.
➤ Select between two different ChatGPT models.
➤ Set numerous advanced options only available through the API.
To bring a little PureBasic into the mix, the knowledge I garnered during this project helped me update my IIS ISAPI PWA example with a Service Worker. Even though the various web content is served from a DLL, it's still possible to get the full app experience.
Yes, it was with an AI, ChatGPT to be precise. This was more than accessing a reference tool or using an advanced search engine; I would describe it as working with a junior programmer with advanced programming knowledge but less experience (won't always be the case).
How it started:
• I was asked by a friend who is fully immersed in the AI culture, how hard would it be to incorporate a simple AI prompt into his company's website; within a day I had a solution including some demo code; more importantly my interest was piqued.
• I Created a ChatGPT account to access the API and budgeted $5.00 for testing.
Note: By the end of my four-week dive into the API which included thousands of test requests, less than $1.00 was used.
For the next three weeks I collaborated with the AI to create my own ChatGPT PWA, the following was the result:
• All the ChatGPT responses are generated server side, securing the API Key.
• A server-side database was setup to save requests when in Instruction mode.
• A Service Worker was written to handle offline caching and updates, a requirement when writing a PWA.
• The app includes an interface to the Tiktoken Python module written by OpenAI, used to convert text into tokens.
• The app works the same on an iPhone as it does a Windows laptop.
• The app includes the following features:
➤ Dictation: use your voice to fill-in the Context and Instruction fields.
➤ Paste text and images from Clipboard.
➤ Open an input window to attach a text or image file.
➤ Conversation Mode: Previous requests and responses are remembered to continue a dialog.
➤ Narration: The computer reads aloud the returned response, highlighting each word as it's read.
➤ Enter a URL to examine a webpage source code.
➤ Enter a URL to examine an online image.
➤ Select between two different ChatGPT models.
➤ Set numerous advanced options only available through the API.
To bring a little PureBasic into the mix, the knowledge I garnered during this project helped me update my IIS ISAPI PWA example with a Service Worker. Even though the various web content is served from a DLL, it's still possible to get the full app experience.
