diff --git a/config.toml b/config.toml index b9ed5b6..59891c9 100644 --- a/config.toml +++ b/config.toml @@ -6,7 +6,7 @@ compile_sass = true minify_html = false generate_feeds = true feed_filenames = ["rss.xml"] -ignored_content = ["*.svg", "*.drawio", "*.png", "*.jpg", "*.jpeg"] +ignored_content = ["*.svg", "*.gif", "*.drawio", "*.png", "*.jpg", "*.jpeg"] [markdown] highlighting = { light_theme = "github-light", dark_theme = "github-dark" } diff --git a/content/ai-system/advanced-apis/index.md b/content/ai-system/advanced-apis/index.md index be461c5..abccb16 100644 --- a/content/ai-system/advanced-apis/index.md +++ b/content/ai-system/advanced-apis/index.md @@ -16,7 +16,7 @@ In [API Fundamentals](@/ai-system/api-fundamentals/index.md) we established the > **Example:** > When you send a request to OpenAI/Anthropic's API, you wait for a few seconds for the complete response to appear. However, when you interact with ChatGPT/Claude on their official web/mobile app, their responses are continuously streamed to you word-by-word. In reality, the streaming behavior is also achievable through APIs. -![](stream1.gif) +![](stream1.webp) In this module, we'll explore advanced API techniques that enable more flexible communication patterns especially relevant for modern AI systems. We'll start with additional fundamentals like rate limiting and versioning, then move to implementing streaming and message-driven protocols. We'll also touch on the shiny new star of AI communication protocols--model context protocol. Finally, we'll examine architectures that make it possible to process high-throughput data efficiently. @@ -146,7 +146,7 @@ The key differences from the regular POST request are: See it work in action: -![](streaming-demo.gif) +![](streaming-demo.webp) > **Extended Reading:** > Take a look at the official documents for streaming messages from [OpenAI](https://platform.openai.com/docs/guides/streaming-responses?api-mode=responses) and [Anthropic](https://docs.anthropic.com/en/docs/build-with-claude/streaming), which provide different approaches towards implementing SSE-based text streaming. diff --git a/content/ai-system/advanced-apis/stream1.webp b/content/ai-system/advanced-apis/stream1.webp new file mode 100644 index 0000000..c68c3d1 Binary files /dev/null and b/content/ai-system/advanced-apis/stream1.webp differ diff --git a/content/ai-system/advanced-apis/streaming-demo.webp b/content/ai-system/advanced-apis/streaming-demo.webp new file mode 100644 index 0000000..03be476 Binary files /dev/null and b/content/ai-system/advanced-apis/streaming-demo.webp differ