NextChat
NextChat copied to clipboard
[Feature Request] Allow Customize endpoint
🥰 Feature Description
Currently, the customizable endpoint feature is not working as expected for external REST APIs, such as https://oneapi.b0zal.io. The issue seems to have arisen after the new developers started maintaining the project. The customizable endpoint keeps forcing the path to api.example.com/v1/message
for Anthropic
or other AI providers, which is causing compatibility issues.
🧐 Proposed Solution
To address this problem, I propose the following solution:
- Modify the customizable endpoint feature to allow users to specify the complete API endpoint path, including the domain and any necessary subpaths.
- Ensure that the specified endpoint path is used as-is, without any forced modifications or additions.
- Implement proper validation and error handling to provide informative feedback to users if the specified endpoint is invalid or unreachable.
- Update the documentation and user interface to clearly communicate the expected format and usage of the customizable endpoint feature.
By implementing these changes, users will have the flexibility to integrate with various external REST APIs seamlessly, without being limited to a specific path structure.
📝 Additional Information
- The issue seems to be related to the way the endpoint URL is constructed, as it always appends
/v1/message
to the user-specified endpoint. - It would be helpful to gather feedback from users who have encountered this issue to understand their specific use cases and requirements.
- Thorough testing should be conducted to ensure that the modified customizable endpoint feature works as expected with a variety of external APIs.