Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

zhipu-embeddings-v2

bởi honestqiao

Web & Frontend Development
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Use Zhipu (智谱) web embeddings API for embeddingsing the internet.

Mô tả

Kỹ năng này làm gì

Connects to Zhipu AI's API to run live web searches using the glm-4-flash model with a built-in web_embeddings tool. Returns current information for queries that need up-to-date data not available in a model's training set.

Provides live web search through a Chinese AI provider, which can be useful when other search APIs are restricted or unavailable in certain network environments.

Khi nào nên dùng

  • Looking up breaking news on a specific topic
  • Checking current prices or product availability
  • Finding recent announcements from a company or project
  • Retrieving real-time event details
  • Searching for information published after a model's training cutoff

Quy trình ví dụ

ĐẦU VÀO

User asks: What's the latest news about the Chinese AI industry?

AGENT
  1. 1

    Constructs a POST request to the Zhipu chat completions endpoint with the web_embeddings tool enabled

  2. 2

    Sets the user message to the search query in Chinese or English

  3. 3

    Sends the request via curl with the ZHIPU_API_KEY authorization header

  4. 4

    Pipes the JSON response through jq to extract the message content

ĐẦU RA

A summary of recent news and web results about the Chinese AI industry

Yêu cầu

  • ZHIPU_API_KEY environment variable
  • Zhipu AI account at bigmodel.cn

Cài đặt

clawhub install honestqiao/zhipu-embeddings-v2

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết