Comments (5)
I recommend using LocalAI as the backend to pair ShellGPT with custom or open-source LLMs, more details in README.md. Currently, ShellGPT has been optimized and tested only with the OpenAI backend. Therefore, I'm closing this issue. Thank you for your interest and feedback!
from shell_gpt.
It's a pity to hear that. This should be so easy to fix on shell_gpt
end.
The model I use is not self-hosted, it is OpenAI-compatible web service, so I do not see how LacalAI could solve the issue.
from shell_gpt.
It's a pity to hear that. This should be so easy to fix on shell_gpt end.
The model I use is not self-hosted, it is OpenAI-compatible web service, so I do not see how LacalAI could solve the issue.
I think the right way to resolve the issue in this case is to fix the response of your custom model/backend so it doesn't return empty choices
. Or just change ShellGPT code on your end to ignore empty choices
.
from shell_gpt.
I have no control on that backend.
And that response with empty choices is not an error, it also serves own purpose, bringing extra info in other fields.
Honestly I have no idea where exactly those extra fields (like prompt_filter_results
) are used, but as I see it - that is just minor extension over standard OpenAI output, and it would be great if such minor differences would not crash shell_gpt
.
It would have been beneficial for shell_gpt
to be robust in processing different data: in the end - that is all valid json, with correct structure.
from shell_gpt.
You can check yourself:
api base: https://one.caifree.com/v1
token: sk-oR2hYL4yYPeFKip96c6a8256C05d4d628bE7E526336718Ff
from shell_gpt.
Related Issues (20)
- Shell autocompletions
- Unable to change OPENAI_BASE_URL in .sgptrc HOT 1
- Ollama/LiteLLM integration: Make api base configurable HOT 1
- Implement Ctrl-C (SIGINT) Handling for Graceful Interruption of Streaming
- Potential Bug Report: ModuleNotFoundError for 'pkg_resources' with pipx HOT 1
- Importing litellm is slow HOT 1
- Function Calling: unexpected behavior within ShellGPT's REPL mode when using the --repl --shell options HOT 3
- Feature request: math formatting HOT 1
- --chat and --role options does'nt seem to work together with any other prompt than default HOT 2
- Error: ShellGPT integrations only available for ZSH and Bash. HOT 2
- Documentation could be clearer for Docker
- `sgpt --show-role code` errors out (see description for error message) HOT 1
- Edit commands from `sgpt -s` mode . . .
- multiple script edition/creation
- Add convenience cli options for displaying config path and folder
- Pasting from clipboard into --repl mode does not handle new line characters HOT 1
- Error code: 404 - The model `gpt-4-1106-preview` does not exist or you do not have access to it.
- when use ollama that completion can't work HOT 1
- Want to add the ability to translate local files directly HOT 3
- Dependency error in Python 3.8: instructor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shell_gpt.