Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

New Feature: docs example for PZERO OpenAI-compatible endpoint

Đang mở Phù hợp với người mới
#14,347 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

  • #14350 của @wasim-builds — đã đóng, không merge

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp
Lĩnh vực
documentation

Hướng nghiên cứu

Xác định tài liệu về connector OpenAI và entry point AddOpenAIChatCompletion, sau đó đọc các ví dụ về provider ở gần đó. Thêm một ví dụ có tên PZERO, thể hiện endpoint /v1, model ID trong catalog, API key dựa trên môi trường và connector hiện có; hoàn tất khi snippet rõ ràng và nhất quán với phần tài liệu xung quanh.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C#
Star
28.7k
Fork
4.8k
Merge trung bình
1 ngày 21 giờ
Pull request đã merge (30 ngày)
28

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/semantic-kernel

Tất cả issue của microsoft/semantic-kernel

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.