全部 新建

user:thomas 由使用者建立的 Gists

title:mygist Gists 的標題

filename:myfile.txt Gists 的檔案名稱

extension:yml Gists 的副檔名

language:go Gists 的程式語言

topic:homelab gists with given topic

登錄


全部 新建 登錄

All gists matching topic vibecoded

倒序排序 創建
順序排序 創建
倒序排序 更新
順序排序 更新
santiago's Avatar

santiago / deepseek_user_id_with_session_name

0 喜歡
0 分支
1 檔案
最後活躍 1791843245
plugin to make pi.dev / pi.gui send the session as user.id to avoid sharing KV_cache
vibecoded
1 /**
2 * DeepSeek `user_id` — ONE ID PER SESSION, never one shared value.
3 *
4 * DeepSeek's Chat Completions API accepts a custom `user_id` body parameter
5 * (https://api-docs.deepseek.com/quick_start/rate_limit) used for:
6 * - content-safety review isolation
7 * - KV-cache isolation
8 * - scheduling/concurrency isolation
9 *
10 * WHY PER SESSION. Those are ISOLATION keys: a single fixed value puts every session that uses it
上一頁 下一頁

由 Opengist 提供支持 ⋅ Load: 30ms⋅

繁體中文
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文