跳到主要內容
AI 武林
文章入門中文

Day 02 - 側錄 Claude Code!

來源 高見龍

讀原文(在新分頁開啟原站)連到 高見龍

摘要

透過側錄方式,將本地 Claude Code 的 API 請求攔截並存檔,讓讀者能直接檢視模型所接收的 system 守則與工具清單。透過設定 ANTHROPIC_BASE_URL 指向本地 proxy,實現「站中間偷看」的學習目的,並展示了如何解析這些結構化資料。

This tutorial captures local Claude Code API requests and saves them for inspection, allowing readers to directly examine the model's received system instructions and tool lists. By setting ANTHROPIC_BASE_URL to point to a local proxy, the 'middleman' approach is demonstrated to understand the input…

重點

  • 側錄本地 Claude Code 請求,攔截並存檔 API 內容。
  • 透過設定 ANTHROPIC_BASE_URL 指向本地 proxy 實現偷看。
  • 解析 system 守則與 tools 清單,學習模型輸入結構。

提到的工具與公司

  • http.server
  • http.client
  • anthropic.com

適合誰看

程式開發者、AI 模型架構師、資料分析人員。

摘要依據

依據
文章全文

為什麼排在這裡

人氣
0.50
新鮮
0.79

在主題頁與搜尋結果裡,名次由相關、人氣、新鮮三個分數決定;這一頁沒有搜尋的關鍵字,所以沒有相關分數。排序怎麼算

摘要由 AI 根據原文產生,可能有誤;完整內容請看原站。讀原文(在新分頁開啟原站)