Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(php-sdk): send conversation renames to the name endpoint (#43075)

Lucien869c1dbf07cd
diff --git a/sdks/php-client/dify-client.php b/sdks/php-client/dify-client.php
index b6cf261b66c..82f2b6ebff1 100644
--- a/sdks/php-client/dify-client.php
+++ b/sdks/php-client/dify-client.php
@@ -164,7 +164,7 @@ class ChatClient extends DifyClient {
'user' => $user,
'auto_generate' => $auto_generate
];
- return $this->send_request('PATCH', "conversations/{$conversation_id}", $data);
+ return $this->send_request('POST', "conversations/{$conversation_id}/name", $data);
}
public function delete_conversation($conversation_id, $user) {