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

New Feature: docs example for PZERO OpenAI-compatible endpoint

未关闭 适合新手
#14,347 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

  • #14350 来自 @wasim-builds —— 已关闭,未合并

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
活跃
技术栈
csharp
领域
documentation

调研方向

找到 OpenAI connector 文档和 AddOpenAIChatCompletion 入口点,然后阅读附近的 provider 示例。添加一个命名为 PZERO 的示例,展示 /v1 端点、目录模型 ID、基于环境的 API key 和现有 connector;当该代码片段清晰且与周围文档一致时即表示完成。

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

描述

Semantic Kernel's OpenAI connector already talks to any OpenAI-compatible host by passing a custom endpoint. People looking for prepaid, privacy-first inference still have to guess the host, key format, and that the endpoint is the /v1 root.

A named PZERO example in the OpenAI connector docs would let users paste and run. No first-party SK connector required. Search for pzero returned none.

using Microsoft.SemanticKernel;

var builder = Kernel.CreateBuilder();
builder.AddOpenAIChatCompletion(
    modelId: "deepseek-v4-flash",
    endpoint: new Uri("https://api.pzero.studio/v1"),
    apiKey: Environment.GetEnvironmentVariable("PZERO_API_KEY")!
);
var kernel = builder.Build();

Endpoint is the /v1 root, not /v1/chat/completions. Pass the catalog id as-is.

Get a key: https://pzero.studio/agents (sign-in free; min top-up 1 USDC on Base; no starter credits). Live text ids: GET https://api.pzero.studio/v1/models (public, no key). Default landing model: deepseek-v4-flash.

Smoke against the same host SK will call:

curl -sS -X POST "https://api.pzero.studio/v1/chat/completions" \
  -H "Authorization: Bearer $PZERO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"deepseek-v4-flash","messages":[{"role":"user","content":"Hello from PZERO"}],"stream":false}'

I am not asking for a bundled AddPzeroChatCompletion. The existing OpenAI connector seam is enough. Do not start implementation on my behalf until the board says Ready; the snippet is for users today.

Every AI Credit is at least 20% off $1 list. Usage is paid.

主要语言
C#
星标
28.7k
派生
4.8k
平均合并
1 天 21 小时
30 天内合并 PR
28

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

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

microsoft/semantic-kernel 的其他 Issue

查看 microsoft/semantic-kernel 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

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