定制 itzmekhokan/ai-provider-for-groq 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

itzmekhokan/ai-provider-for-groq

Composer 安装命令:

composer require itzmekhokan/ai-provider-for-groq

包简介

AI Provider for Groq for the PHP AI Client SDK. Works as both a Composer package and WordPress plugin.

README 文档

README

AI Provider for Groq for the WordPress AI Client. Works as both a Composer package and a WordPress plugin.

This provider registers Groq with the AI Client, exposing the open models Groq serves on its fast LPU inference platform (Llama, Mixtral, Gemma, Qwen, GPT-OSS, and more) for text generation through Groq's OpenAI-compatible Chat Completions API.

Requirements

How it works

Groq exposes an OpenAI-compatible API, so this provider is intentionally thin:

Class Responsibility
Provider\GroqProvider Registers the provider, base URL (https://api.groq.com/openai/v1), API-key auth, and metadata.
Metadata\GroqModelMetadataDirectory Lists models from GET /openai/v1/models and maps capabilities/options.
Models\GroqTextGenerationModel Sends POST /openai/v1/chat/completions via the shared OpenAI-compatible base class.

Because Groq speaks the Chat Completions format, GroqTextGenerationModel extends AbstractOpenAiCompatibleTextGenerationModel from the SDK and only overrides request construction.

Supported capabilities

  • Text generation (chat) with the open models hosted on Groq
  • Multimodal (image) input for vision-capable models (e.g. the Llama 4 family)
  • Function calling and JSON / structured output

Groq also serves Whisper (speech-to-text) and PlayAI (text-to-speech) models; these are listed without text generation capability since they are not chat models.

Installation

As a WordPress plugin

Copy this directory into wp-content/plugins/ and activate it alongside the WordPress AI Client.

As a Composer package

composer require itzmekhokan/ai-provider-for-groq

Author

Khokan Sardar

License

GPL-2.0-or-later

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-06-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固