cognesy/instructor-polyglot
最新稳定版本:v2.3.1
Composer 安装命令:
composer require cognesy/instructor-polyglot
包简介
Unified LLM connectivity layer for PHP applications
README 文档
README
Unified LLM connectivity layer for InstructorPHP.
It provides two facades:
Inferencefor chat/completion responsesEmbeddingsfor vector generation
Example
<?php use Cognesy\Polyglot\Inference\Inference; $text = Inference::using('openai') ->withModel('gpt-4o-mini') ->withMessages('Write one short sentence about PHP.') ->get();
Documentation
packages/polyglot/docs/quickstart.mdpackages/polyglot/docs/essentials/inference-class.mdpackages/polyglot/docs/embeddings/overview.mdpackages/polyglot/docs/_meta.yaml
统计信息
- 总下载量: 407
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 7
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-22