jackMort/ChatGPT.nvim

Make it compatible with deepinfra

开放

#438 创建于 2024年5月16日

 (0 条评论) (0 个反应) (0 位负责人)Lua (319 个派生)batch import
enhancementgood first issue

仓库指标

星标
 (3,997 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

I am trying to use thsi plugin with deepinfra which offers llama3b-70b on the cheap and a openAI compatible api, how ever its api endpoints has "openai" in the middle like this

https://api.deepinfra.com/v1/openai/chat/completions

And current code hard-coded to add /v1/chat/completions path to api base address, and this makes it not able to make api calls correctly to deepinfra api endpoint.

Would it be possible to make "v1" part of api base url? I know this is a breaking change, but it does not make a lot of sense to hard-code an api version in request paths, right?

贡献者指南