You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to configure OpenRouter.ai as an OpenAI-compatible API, the setup fails due to problems with the API Hostname and Port API configurations. Specifically, the hostname gets truncated, and incorrect port settings result in connection errors.
Steps to Reproduce
Access Configuration Page:
Navigate to the OpenRouter.ai API configuration interface intended for setting up an OpenAI-compatible API.
Attempt Configuration with Protocol in Hostname:
API Hostname:https://openrouter.ai/api/
Port API:443 (Automatically set)
Result: Hostname is truncated, and an error Cannot connect to host https:80 is displayed.
Attempt Configuration Without Protocol:
API Hostname:openrouter.ai/api/
Port API:Leave empty
Result:https:// is automatically prefixed, and port 443 is appended, causing configuration issues for remote services.
Expected Behavior
The configuration interface should allow users to specify the full API hostname, including the protocol (http:// or https://) and the port number, without forcing default values. This flexibility should support both local and remote service configurations.
Actual Behavior
Hostname Truncation: Including the protocol in the API Hostname results in the hostname being truncated, leading to connection errors.
Forced Defaults: The interface automatically appends https:// and port 443, overriding user inputs and preventing proper configuration of remote services.
Suggested Fix
Remove the separate Port API and Use HTTPS options from the configuration interface. Instead, allow users to define the protocol and port directly within the API Hostname field. This change provides greater flexibility and accommodates various deployment scenarios.
Proposed Configuration Examples:
Local Service with HTTP:
API Hostname: http://localhost:80
Local Service with HTTPS:
API Hostname: https://localhost:443
Remote Service (e.g., OpenRouter):
API Hostname: https://openrouter.ai/api
The text was updated successfully, but these errors were encountered:
Description
When attempting to configure OpenRouter.ai as an OpenAI-compatible API, the setup fails due to problems with the
API Hostname
andPort API
configurations. Specifically, the hostname gets truncated, and incorrect port settings result in connection errors.Steps to Reproduce
Access Configuration Page:
Attempt Configuration with Protocol in Hostname:
https://openrouter.ai/api/
443
(Automatically set)Cannot connect to host https:80
is displayed.Attempt Configuration Without Protocol:
openrouter.ai/api/
https://
is automatically prefixed, and port443
is appended, causing configuration issues for remote services.Expected Behavior
The configuration interface should allow users to specify the full API hostname, including the protocol (
http://
orhttps://
) and the port number, without forcing default values. This flexibility should support both local and remote service configurations.Actual Behavior
API Hostname
results in the hostname being truncated, leading to connection errors.https://
and port443
, overriding user inputs and preventing proper configuration of remote services.Suggested Fix
Remove the separate
Port API
andUse HTTPS
options from the configuration interface. Instead, allow users to define the protocol and port directly within theAPI Hostname
field. This change provides greater flexibility and accommodates various deployment scenarios.Proposed Configuration Examples:
Local Service with HTTP:
API Hostname
:http://localhost:80
Local Service with HTTPS:
API Hostname
:https://localhost:443
Remote Service (e.g., OpenRouter):
API Hostname
:https://openrouter.ai/api
The text was updated successfully, but these errors were encountered: