chatgpt-shell icon indicating copy to clipboard operation
chatgpt-shell copied to clipboard

Custom "url-path" is ignored?

Open jochie opened this issue 8 months ago • 0 comments

at work we “locally” run several models that are all available via an API that works like the OpenAI API, but instead of /v1/chat/completions it uses something different (see below).

Following the guidance I put together something like this, but it didn't work as hoped/expected:

(use-package chatgpt-shell
  :ensure t
  :custom
  ((chatgpt-shell-api-url-base “https://<...local-LLM-service...>“)
   (chatgpt-shell-api-url-path “/openai/deployments/gpt-4o/chat/completions”)
   (chatgpt-shell-openai-key (auth-source-pick-first-password :host “api.openai.com”))))

That configurability seems to have gone away with commit 417793c9bf37151adbe1e1a0b06eb34be9b64f30 but the documentation implies it is still there, so am I missing something?

Instead I ended up manually editing chatgpt-shell-openai.el, modifying the path in (cl-defun chatgpt-shell-openai-make-model ...).

so to recap: I do have it working, but it involved modifying your source which I'd like to avoid

jochie avatar Mar 31 '25 19:03 jochie