try! Swift Tokyo 2025 - Live coding a streaming ChatGPT proxy with Swift OpenAPI—from scratch!

Conference: try! Swift Tokyo 2025

Year: 2025

Join us as we build a ChatGPT client, from scratch, using Swift OpenAPI Generator. We'll take advantage of Swift OpenAPI's pluggable HTTP transports to reuse the same generated client to make upstream calls from a Linux server, providing end-to-end streaming, backed by async sequences, without buffering upstream responses. In this session you'll learn how to: Generate a type-safe ChatGPT macOS client and use URLSession OpenAPI transport. Stream LLM responses using Server Sent Events (SSE). Bootstrap a Linux proxy server using the Vapor OpenAPI transport. Use the same generated ChatGPT client within the proxy by switching to the AsyncHTTPClient transport. Efficiently transform responses from SSE to JSON Lines, maintaining end-to-end streaming. Speaker: Si Beaumont Developers from all over the world gather for tips and tricks and the latest case studies of development using Swift. Developers from all over the world will gather here. Swift and to showcase our Swift knowledge and skills, and to collaborate with each other, The event will be held for three days from April 9 - 11, 2025! Channel: https://www.youtube.com/@trySwiftConference X: https://twitter.com/tryswiftconf WebSite: https://tryswift.jp