xenodium / chatgpt-shell

A multi-llm Emacs shell (ChatGPT, Claude, Gemini, Ollama, Perplexity) + editing integrations
https://lmno.lol/alvaro
GNU General Public License v3.0
867 stars 77 forks source link

[Feature Request] Consider refactor code to support easily add other AI backends? #107

Closed stardiviner closed 1 year ago

stardiviner commented 1 year ago

My ChatGPT account is banned. I found Poe https://poe.com/ChatGPT can be used. Can chatgpt-shell support any other AI backends easily through simply changing API URL and API response parser function?

xenodium commented 1 year ago

any other AI backends easily through simply changing API URL

If there is an API URL that provides the same API request/response structure as ChatGPT, this would be doable. Could you provide that please?

If the API request/response structure is different, it would have to be implemented using shell-maker and that's bigger in scope.

stardiviner commented 1 year ago

I checked the Developer Tools when sending request to Poe ChatGPT. Here is the screenshot:

Screenshot 2023-06-04 at 10 24 37@2x

I'm not familiar with web crawler technique. In my rough view, it has API for posting data, but I have not found the response. Hope someone knows this can analysis it.

xenodium commented 1 year ago

Thank you. Unless there's a legitimate and equivalent API available, with similar ChatGPT semantics/structure, it would be out of scope for this project.