cryodrift/ai 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cryodrift/ai

最新稳定版本:0.1.7

Composer 安装命令:

composer require cryodrift/ai

包简介

Inference Api Client

README 文档

README

ai - AI Inference API Client CLI

SYNOPSIS

php index.php -echo /ai [COMMAND] [OPTIONS]

DESCRIPTION

Dieses Modul bietet eine CLI-Schnittstelle zur Interaktion mit verschiedenen AI-Providern (OpenAI, Claude, Lokale Instanzen).

COMMANDS

  • chat: Interaktive oder dateibasierte Chat-Anfragen.
  • batch: Erstellen und Verwalten von Batch-Jobs (für asynchrone Verarbeitung).
  • batches: Statusabfrage oder Auflistung von Batch-Jobs.
  • models: Verfügbare Modelle eines Providers auflisten.
  • files: Hochgeladene Dateien verwalten (auflisten, lesen, löschen).
  • extract: Informationen aus Nachrichten in Dateien extrahieren.

OPTIONS

  • -help: Zeigt immer die jeweilige Parameterhilfe an.
  • -model=NAME: Name des zu verwendenden KI-Modells.
  • -provider=TYPE: API-Provider (oairesp für OpenAI, locresp für Local, cldresp für Claude).
  • -content=FILE: Pfad zu einer Eingabedatei (kann mehrfach angegeben werden).
  • -outfile=FILE: Pfad, in den die Antwort geschrieben werden soll.
  • -send: Schickt die Anfrage tatsächlich ab.
  • -id=ID: Spezifische ID für Batches oder Dateien.
  • -status: Zeigt den Status an (meist in Verbindung mit batches).
  • -stop: Beendet den Vorgang nach dem Senden (bei Batches).
  • -read: Liest den Inhalt einer Datei (bei files).
  • -msg=FILE: Pfad zur Nachrichtendatei (bei extract).

EXAMPLES

resp Modus

Einfacher resp mit mehreren Quelldateien und Ausgabe in eine HTML-Datei:

php index.php -echo /ai resp -model="gpt-4o" -provider=oairesp -content="src/app/input.txt" -content="src/app/docs.md" -outfile="src/app/result.html" -send

resp über Pipe (Standard-Input):

echo "Übersetze dies ins Englische" | php index.php -echo /ai resp -model="gpt-4o" -provider=oairesp -content -outfile="result.txt" -send

Batch Modus

Einen neuen Batch-Job starten:

php index.php -echo /ai batch -model="gpt-4o" -provider=oairesp -content="task.txt" -outfile="batch_result.html" -send

Status eines Batches abfragen:

php index.php -echo /ai batches -status -id=BATCH_ID_HERE

Liste aller Batches anzeigen:

php index.php -echo /ai batches

Modell-Verwaltung

Verfügbare Modelle eines Providers auflisten:

php index.php -echo /ai models -provider=locresp -send

Datei-Operationen

Hochgeladene Dateien auflisten:

php index.php -echo /ai files -provider="oairesp"

Inhalt einer remote Datei lesen und lokal speichern:

php index.php -echo /ai files -provider="oairesp" -read -id=file-ID_HERE -outfile="downloaded.html"

Extraktion

Extrahiert Informationen aus einer Chat-Message in eine HTML-Datei:

php index.php -echo /ai extract -msg=".cryodrift/data/ai/message_id.chat" -outfile="src/data/input.html"

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固