mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
NVIDIA Triton Inference Server HTTP API Error #148
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gonzal40 on GitHub (Mar 29, 2025).
Self Checks
Dify version
v0.15.2. v1.0.0 Beta, v1.1.3
Plugin version
0.02
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Note: Nvidia's documentation for Triton Inference Server defines error 400 as:TRITONSERVER_ERROR_UNKNOWN,
TRITONSERVER_ERROR_INVALID_ARG,
TRITONSERVER_ERROR_ALREADY_EXISTS,
TRITONSERVER_ERROR_CANCELLED
400
Bad Request (default for other errors)
✔️ Error log
This is the only error presented in the web interface when attempting to save my configuration details in the Triton Server plugin:
An error occurred during connection: An error occurred during connection: Client error '400 Bad Request' for url 'http://192.168.20.145:8000/v2/models/Meta-Llama-3.1-8B-Instruct-ONNX-INT4/generate' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400
✔️ Expected Behavior
Expected behavior is for the model provider configuration to save after confirming connectivity to the Triton Inference Sever. According to the Triton Inference Server documentation (https://github.com/triton-inference-server/server/blob/main/docs/protocol/extension_parameters.md), it appears the HTTP API should specify /v2/models/{model name}/infer when making a call for inference.
❌ Actual Behavior
Instead of calling the HTTP API in the way Triton Inference Server expects (/v2/models/{model name}/infer), the Dify plugin calls /v2/models/{model name}/generate which appears to be causing the 400 error.
@AnyangAngus commented on GitHub (Mar 30, 2025):
meet same problem.
/infer and /generate both can send request to tritonserver but the json formats are different,
I change the code in plugin container manually but the url did not change any more. https://github.com/langgenius/dify-official-plugins/blob/main/models/triton_inference_server/models/llm/llm.py#L189
so how can I change code in plugin container?
@dosubot[bot] commented on GitHub (Aug 15, 2025):
Hi, @gonzal40. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary:
/inferand/generateendpoints.Next Steps:
Thank you for your understanding and contribution!