mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 11:31:23 +00:00
refactor: rename clawdbot to moltbot with legacy compat
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* OpenResponses HTTP Handler
|
||||
*
|
||||
* Implements the OpenResponses `/v1/responses` endpoint for Clawdbot Gateway.
|
||||
* Implements the OpenResponses `/v1/responses` endpoint for Moltbot Gateway.
|
||||
*
|
||||
* @see https://www.open-responses.com/
|
||||
*/
|
||||
@@ -552,7 +552,7 @@ export async function handleOpenResponsesHttpRequest(
|
||||
.map((p) => (typeof p.text === "string" ? p.text : ""))
|
||||
.filter(Boolean)
|
||||
.join("\n\n")
|
||||
: "No response from Clawdbot.";
|
||||
: "No response from Moltbot.";
|
||||
|
||||
const response = createResponseResource({
|
||||
id: responseId,
|
||||
@@ -706,7 +706,7 @@ export async function handleOpenResponsesHttpRequest(
|
||||
if (evt.stream === "lifecycle") {
|
||||
const phase = evt.data?.phase;
|
||||
if (phase === "end" || phase === "error") {
|
||||
const finalText = accumulatedText || "No response from Clawdbot.";
|
||||
const finalText = accumulatedText || "No response from Moltbot.";
|
||||
const finalStatus = phase === "error" ? "failed" : "completed";
|
||||
requestFinalize(finalStatus, finalText);
|
||||
}
|
||||
@@ -831,7 +831,7 @@ export async function handleOpenResponsesHttpRequest(
|
||||
.map((p) => (typeof p.text === "string" ? p.text : ""))
|
||||
.filter(Boolean)
|
||||
.join("\n\n")
|
||||
: "No response from Clawdbot.";
|
||||
: "No response from Moltbot.";
|
||||
|
||||
accumulatedText = content;
|
||||
sawAssistantDelta = true;
|
||||
|
||||
Reference in New Issue
Block a user