Agents & Products

GLM-5.2 OpenAI-Compatible API: A Hands-On Guide to Reasoning Effort, Function Calling, and Long-Context Retrieval

In this tutorial, we work with GLM-5.2 and use its hosted, OpenAI-compatible API instead of running the full model locally. We begin by setting up multiple provider options, securely loading the API key, and creating a reusable chat wrapper that supports normal chat, thinking mode, streaming, tool calling, and token tracking. Then we move beyond a simple chatbot example and test the model in more practical situations, including reasoning-effort control, streamed reasoning and answers, function

Get smart on it

This is a tutorial on how to use GLM-5.2 through an OpenAI-compatible API rather than running the full model locally. The guide covers setting up the API client securely, creating a reusable chat wrapper, and testing the model across various practical features including reasoning-effort control, function calling, tool usage, structured output, and long-context retrieval. The tutorial demonstrates how to stream both the model's reasoning process and final answers separately, compare different thinking-effort levels on the same problem, and track token usage for cost estimation. This matters because it shows developers how to access and implement advanced reasoning capabilities in real-world applications without managing the computational overhead of running the model themselves.

Explainer: GLM 5.2: How a 744B Open Model Is Closing the Gap With Claude Opus on Code

The biggest AI stories, once a day

One short email a day with the stories that matter. Free. Unsubscribe with one click.

Relevant courses

Want to go deeper than the news? Explore live, cohort-based AI courses taught by practitioners.

Browse AI courses on Maven
Related news
Agents & ProductsOpen story →

OpenAI’s quarterly revenue reportedly crosses $10B for the first time

Sales of $10B represents an almost 50% jump from revenue of $6.7 billion the company recorded in the second quarter.

Agents & ProductsOpen story →

Agents that build their own databases are forcing a data foundation rethink

AI agents are changing how enterprises create, move and govern information, and data observability is turning into a prerequisite rather than a nice-to-have. Models get most of the attention, but the data beneath them decides whether they hold up in production. That pressure is now reaching the cloud-native community, where KubeCon organizers added a dedicated […] The post Agents that build their own databases are forcing a data foundation rethink appeared first on SiliconANGLE.

Agents & ProductsOpen story →

Hands-on with Ring’s new AI drone camera for your home

Ring’s new Drone Cam is a flying indoor security camera. Ring is finally shipping a flying indoor drone camera. For real this time. The Ring Drone Cam will arrive on January 27th, 2027, for $249.99, Ring founder Jamie Siminoff said at a launch event in New York City this week. If it does actually ship, it will arrive almost six years after the company announced its first flying camera, the Ring Always Home Cam. Designed to patrol inside your home when you're not there, the Drone

Also reported by TechCrunch and Ars Technica

Agents & ProductsOpen story →

OpenAI rolls out new business profiles, making ChatGPT just a little bit more like Google

OpenAI is looking to make ChatGPT a more robust consumer discovery engine, and a host of new features seek to empower businesses to help it do that.

Also reported by The Verge

Agents & ProductsOpen story →

AI agents carry memory and storage like people, so their data needs guarding while in use

As AI agents move into production on Kubernetes, cloud engineering teams at financial companies face a security problem that encryption alone can’t solve. Container orchestration has become the default foundation for AI workloads, and the data those agents use is now the main target. Payment networks feel that pressure more than most because every transaction […] The post AI agents carry memory and storage like people, so their data needs guarding while in use appeared first on Silic

Agents & ProductsOpen story →

Serve Robotics opens robot delivery network for others to build on

The AV Delivery Developer Portal enables anyone to call robots from Serve’s delivery fleet. Source: Serve Robotics Serve Robotics Inc. today launched the AV Delivery Developer Portal, which it said gives developers, businesses, hobbyists, and AI assistants the opportunity to programmatically summon its sidewalk delivery robots. The company said its public application programming interface, or API, allows others to work with its autonomous robot fleet. It also released a sandbox environment