-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A blank line when Ctrl+P #62
Comments
actually there is an issue with OpenAI (error 429 on the API even if there are credits); I'm trying to sort it out, but i keep the bug open since there isn't a log file created to see the error; |
Thank you for the bug report. It may be that this commit swallows some error message. Can you try to roll back to an older version and try again?
Hopefully that will create a log file and then I can roll back/fix the broken commit. |
it still doesn't create the log file, but there is an error output! so i typed "hello" and pressed Ctrl+P
|
I can reproduce the problem. It happens on Python 3.13. If you use Python 3.10 it will work (edit the file here to run Looks like the dependency |
Looks like Python 3.13 is not supported by I'll keep an eye on it and update the dependency as soon as a new version is available. |
i replaced python3 to python3.10 on |
Remove the existing version and then install from the branch I just created with this commit.
|
doesnt output an error, but it doesn't run either, however it creates the log file:
|
The error is:
Does this post help? |
im not sure how? it says that you dont need to add an organization, but on fish-ai.ini it asks for organization |
You can try to remove that line in the configuration. It's possible that the example in the README is not accurate. I would test it myself, but I do not have access to OpenAI anymore. |
tried already, same issue unfortunately 😟 |
I have made the plugin more aware of what version of Python is being used to run it. I'm now running pytest on a set of supported versions of Python, and if the plugin is installed with a different version, it will warn the user and provide instructions for how to install on a supported version. @alex285 Please remove fisher remove (fisher list | grep fish-ai)
set -g FISH_AI_PYTHON_VERSION 3.12
fisher install realiserad/fish-ai If you still have issues with OpenAI, and believe that this is a problem with the plugin, feel free to open a new issue. 🙂 |
📝 Environment
fish_ai_bug_report
Environment
Running on Fedora Linux 42 (Workstation Edition Prerelease)
Keyboard and key bindings
bind \cp _fish_ai_codify_or_explain
bind -k nul _fish_ai_autocomplete_or_fix
WARNING: Running setxkbmap against an Xwayland server
Keyboard layout: us
Dependencies
Python 3.13.0rc3
fish, version 3.7.0
fisher, version 4.4.5
git version 2.46.2
Package Version
annotated-types 0.7.0
anyio 4.6.0
azure-ai-inference 1.0.0b4
azure-core 1.31.0
binaryornot 0.4.4
cachetools 5.5.0
certifi 2024.8.30
chardet 5.2.0
charset-normalizer 3.3.2
distro 1.9.0
fish_ai 0.10.0
google-ai-generativelanguage 0.6.10
google-api-core 2.20.0
google-api-python-client 2.148.0
google-auth 2.35.0
google-auth-httplib2 0.2.0
google-generativeai 0.8.2
googleapis-common-protos 1.65.0
grpcio 1.66.2
grpcio-status 1.66.2
h11 0.14.0
httpcore 1.0.6
httplib2 0.22.0
httpx 0.27.2
hugchat 0.4.11
idna 3.10
isodate 0.7.0
iterfzf 1.4.0.54.3
jiter 0.6.1
jsonpath-python 1.0.6
mistralai 1.0.2
mypy-extensions 1.0.0
openai 1.50.2
pip 24.2
proto-plus 1.24.0
protobuf 5.28.2
pyasn1 0.6.1
pyasn1_modules 0.4.1
pydantic 2.8.2
pydantic_core 2.20.1
pyparsing 3.1.4
python-dateutil 2.9.0.post0
requests 2.32.3
requests-toolbelt 1.0.0
rsa 4.9
simple-term-menu 1.6.4
six 1.16.0
sniffio 1.3.1
tqdm 4.66.5
typing_extensions 4.12.2
typing-inspect 0.9.0
uritemplate 4.1.1
urllib3 2.2.3
Fish plugins
jorgebucaran/fisher
realiserad/fish-ai
Configuration
[fish-ai]
configuration = openai
debug = True
log = ~/log.txt
[openai]
provider = openai
model = gpt-4o-mini
organization = Personal
Functionality tests
🔥 Running functionality tests...
codify 'print the current date' -> '' (in 1 seconds)
explain 'date' -> '' (in 0 seconds)
🙉 To reproduce
Adding a comment, pressing Ctrl+P, and I just get an empty line (the comment is deleted); also, it doesn't create the log.txt file, and it doesn't make any request to OpenAI
The text was updated successfully, but these errors were encountered: