Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Send `gen_ai.embeddings.input` with appropriate format

未關閉 適合新手
#7,972 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
64/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
python

研究方向

首先找出 Python SDK 發出 gen_ai.embeddings.input 的位置,並閱讀周圍的嵌入 instrumentation。將發出的值和型別與 issue 及其連結的 GenAI RFC 中的四種格式進行比較。為 text、texts、tokens 和 token_batches 新增或更新針對性測試;每種輸入形式都以相符的型別送出時,即表示完成。

由索引模型根據 Issue 內容生成。

描述

Improvement Python Spans

As per the GenAI RFC:

The attribute is a union discriminated by the type property. The type property is one of "text", "texts", "tokens", or "token_batches".

If the type is "text", then the value is a simple string, as in

{
    "type": "text",
    "value": "Hello, world!",
}

If the type is "texts", the value is a string array, as in

{
    "type": "texts",
    "value": ["First text", "Second text", "Third text"],
}

If the type is "tokens", then the value is an array of integers, as in

{
    "type": "tokens",
    "value": [5, 8, 13, 21, 34],
}

Finally, if the type is "token_batches", then the value is a 2-dimensional array of integers, as in

{
    "type": "token_batches",
    "value": [[5, 8, 13, 21, 34], [8, 13, 21, 34, 55]],
}
主要語言
Python
星號
2.2k
分支
682
平均合併
1 天 7 小時
30 天內合併 PR
244

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

getsentry/sentry-python 的其他 Issue

查看 getsentry/sentry-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。