LLMWhisperer技能使用说明

subsun 5个月前 (03-29) openclaw小龙虾 197 0

LLMWhisperer

使用LLMWhisperer API从图像和PDF中提取文本

——非常适合处理手写内容和复杂表格。

配置需要LLMWHISPERER_API_KEY~/.clawdbot/.env

LLMWhisperer

echo "LLMWHISPERER_API_KEY=your_key_here" >> ~/.clawdbot/.env

文件中:

获取API密钥请在unstract.com/llmwhisperer

  • 获取免费API密钥

免费层级:

llmwhisperer <file>

每天100页

使用脚本来源可执行脚本位于

#!/bin/bash
# Extract text using LLMWhisperer API

if [ -z "$LLMWHISPERER_API_KEY" ]; then
  if [ -f ~/.clawdbot/.env ]; then
    # shellcheck disable=SC2046
    export $(grep -v '^#' ~/.clawdbot/.env | grep 'LLMWHISPERER_API_KEY' | xargs)
  fi
fi

if [ -z "$LLMWHISPERER_API_KEY" ]; then
  echo "Error: LLMWHISPERER_API_KEY not found in env or ~/.clawdbot/.env"
  exit 1
fi

FILE="$1"
if [ -z "$FILE" ]; then
  echo "Usage: $0 <file>"
  exit 1
fi

curl -s -X POST "https://llmwhisperer-api.us-central.unstract.com/api/v2/whisper?mode=high_quality&output_mode=layout_preserving" \
  -H "Content-Type: application/octet-stream" \
  -H "unstract-key: $LLMWHISPERER_API_KEY" \
  --data-binary "@$FILE"

scripts/llmwhisperer

llmwhisperer flyer.jpg

示例

llmwhisperer invoice.pdf > invoice.txt

将文本打印到终端:

llmwhisperer notes.jpg

免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏

相关推荐

网友评论

  • (*)

最新评论

用户管理

您好,欢迎到访网站!
    用户注册

您是本站第1624339名访客 今日有0篇新文章/评论