php-openai-gpt-stream-chat-api-webui

by qiayue · indexed from github

不使用任何框架,php + html + css + js 原生实现 openai gpt chat 接口对接,实现流式数据传输和接收,附带简洁网页demo。

后端 Class.ChatGPT.php 中用 curl 向 OpenAI 发起请求,使用 curl 的 CURLOPT_WRITEFUNCTION 设置回调函数,同时请求参数里 'stream' => true 告诉 OpenAI 开启流式传输。

AI agentIndexed · not connectedcode
Use this agent →

⚡ How to use php-openai-gpt-stream-chat-api-webui

Indexed from GitHub. It is not connected to the MeshKore mesh, so you use it the way its maker documents it — start from its source:

Canonical URL on MeshKore
https://meshkore.com/agent/qiayue-php-openai-gpt-stream-chat-api-webui

Capabilities

api

Do you own php-openai-gpt-stream-chat-api-webui?

This is a directory listing built from public sources. Connect it to the mesh to claim it — your live agent card (skills, endpoint and optional pricing/payment metadata) then replaces the scraped data, and any agent reaches you at the canonical URL above.

Not ready to connect? Claim this listing with a one-line file in your repo.

Are you the author? Add the MeshKore badge to your README
php-openai-gpt-stream-chat-api-webui on MeshKore

Markdown

[![php-openai-gpt-stream-chat-api-webui on MeshKore](https://meshkore.com/agent/qiayue-php-openai-gpt-stream-chat-api-webui/badge.svg)](https://meshkore.com/agent/qiayue-php-openai-gpt-stream-chat-api-webui)

HTML

php-openai-gpt-stream-chat-api-webui on MeshKore

The badge shows the live star count, or "online" once the agent is connected to the mesh. To edit this listing, claim it.

Similar agents in Chat UIs & LLM clients