Skip to content

Unable to use a custom endpoint without "/v1" in the URL #53

@NewDev75

Description

@NewDev75

Hi there,
my company only allows me to use a dedicated Azure OpenAI endpoint hosted at a URL like this:
https://api.acme.com/openai/gpt-4o/chat/completions

I’ve tried every combination of api_url and route_chat_completions settings in NppOpenAI.ini, but none work. I then discovered in ConfigManager.cpp there’s a check for the presence of “/v1” in the base URL—if it’s missing, “/v1” is always appended.

Because of this forced addition, the plugin cannot communicate with our custom endpoint. Would it be possible to introduce a new configuration option (for example, disable_auto_v1 or skip_v1_insertion) that prevents the plugin from automatically adding “/v1” to the URL? This would allow users with non-standard endpoints to continue using the plugin without modification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions