Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[bot] Instrument Z.AI Java SDK (34,271 weekly downloads)

未关闭
#190 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
java

调研方向

Read AGENTS.md and compare the existing modules under braintrust-sdk/instrumentation/*, especially their build.gradle files. Then inspect the upstream zai-org/z-ai-sdk-java client APIs and the repository’s instrumentation patterns. Done means the Java SDK’s relevant Z.AI calls are traced and covered by tests; the issue does not identify specific entry points or tests.

由索引模型根据 Issue 内容生成。

描述

java

Summary

Z.AI (formerly Zhipu AI, makers of the GLM model family) publishes an official Java SDK, zai-org/z-ai-sdk-java, distributed on Maven Central as ai.z.openapi:zai-sdk. It exposes a dedicated client (ZaiClient / ZhipuAiClient) for execution-oriented generative AI calls — chat completions (sync + streaming), function/tool calling, embeddings, vision, image generation, video generation, and speech. This SDK is not covered by any existing instrumentation module in this repo, and its client classes are entirely distinct from the com.openai/com.anthropic/dev.langchain4j/Spring AI/Bedrock/Google GenAI classes already instrumented, so none of today's bytecode instrumentation applies to it.

What is missing

Capability Upstream (ai.z.openapi:zai-sdk) Braintrust Java SDK instrumentation
Chat completions (sync) ✅ ChatCompletionService ❌ not instrumented
Streaming chat completions ✅ Flowable-based streaming ❌ not instrumented
Function / tool calling ✅ ❌ not instrumented
Embeddings ✅ ❌ not instrumented
Vision / multimodal ✅ ❌ not instrumented
Image / video generation ✅ ❌ not instrumented

None of braintrust-sdk/instrumentation/* targets the ai.z.openapi group — the directory currently contains only anthropic_2_2_0, aws_bedrock_2_30_0, genai_1_18_0, langchain_1_14_0, langchain_1_8_0, openai_2_15_0, springai_1_0_0, and springai_2_0_0.

Weekly downloads

Maven Central does not publish public per-artifact download counts, so per this repo's established precedent (e.g. #162) the primary tracked distribution for this SDK family is cited instead: the official Python package zai-sdk on PyPI had 34,271 downloads in the last 7 days, as of 2026-10-19, per pypistats.org (https://pypistats.org/api/packages/zai-sdk/recent → {"last_week": 34271}; corroborated by the daily overall series at https://pypistats.org/api/packages/zai-sdk/overall covering 2026-04-08–2026-10-18).

Braintrust docs status

Checked braintrust.dev/docs/admin/ai-providers: Braintrust lists OpenAI, Anthropic, Google Vertex AI, Azure AI Foundry, Bedrock, and custom providers as configurable AI providers. GLM (Z.AI's model family) appears only as a Braintrust-hosted built-in model (GLM-5.2, GLM-5.3 Flash, served via Baseten through the Braintrust gateway using an OpenAI-compatible endpoint) — there is no direct Z.AI/Zhipu provider integration or SDK-instrumentation guidance. A user calling Z.AI's own API directly via the official zai-sdk Java client (rather than routing through Braintrust's gateway with the OpenAI SDK) gets no tracing today.

Upstream sources

Braintrust docs sources

Local files inspected

  • AGENTS.md
  • braintrust-sdk/instrumentation/*/build.gradle (anthropic_2_2_0, aws_bedrock_2_30_0, genai_1_18_0, langchain_1_14_0, langchain_1_8_0, openai_2_15_0, springai_1_0_0, springai_2_0_0)
  • Directory listing of braintrust-sdk/instrumentation/*
主要语言
Java
星标
21
派生
5
平均合并
18 小时 29 分钟
30 天内合并 PR
8

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

braintrustdata/braintrust-sdk-java 的其他 Issue

查看 braintrustdata/braintrust-sdk-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。