n8n-nodes-siliconflow-ai 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -703,9 +703,14 @@ exports.SiliconFlow = SiliconFlow;
|
|
|
703
703
|
// SiliconFlow credential (Bearer token injected automatically).
|
|
704
704
|
// ----------------------------------------------------------------
|
|
705
705
|
async function siliconflowRequest(path, body) {
|
|
706
|
+
// httpRequestWithAuthentication does NOT apply the node-level requestDefaults.baseURL,
|
|
707
|
+
// so we must build a fully-qualified URL from the credential's baseUrl ourselves.
|
|
708
|
+
// (The Authorization header IS injected automatically from the credential.)
|
|
709
|
+
const credentials = (await this.getCredentials('siliconFlowApi'));
|
|
710
|
+
const baseUrl = (credentials.baseUrl || '').replace(/\/+$/, '');
|
|
706
711
|
const options = {
|
|
707
712
|
method: 'POST',
|
|
708
|
-
url: path
|
|
713
|
+
url: `${baseUrl}${path}`,
|
|
709
714
|
body,
|
|
710
715
|
json: true,
|
|
711
716
|
headers: { 'Content-Type': 'application/json' },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-siliconflow-ai",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "n8n community node for SiliconFlow (硅基流动). Zero runtime dependencies. Provides a SiliconFlow action node (Chat / Vision / Embeddings / Image / Rerank) and a LangChain-compatible Chat Model node for AI Agents. Installs cleanly without ERESOLVE langchain peer-dependency conflicts.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n",
|