GithubHelp home page GithubHelp logo

ankibrain's People

Contributors

bastianmueller98 avatar eshahrabani avatar samuelskottenborg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ankibrain's Issues

Adding gpt-4o and gpt-4o-mini

The models gpt-4o and gpt-4o-mini are two good models to add, they have a bigger token window and come at a cheaper price than gpt-4 with less hallucinating than gpt-3.5-turbo.

I added them on my local add-on but I don't know how to make the react changes properly, so that it could be pushed here.

Anyways, the names are just "gpt-4o" and "gpt-4o-mini".
It is a simple patch witch much impact.

Here is a comparison:
https://anakin.ai/blog/gpt-3-5-turbo-vs-gpt-4o-mini-a-comprehensive-comparison-of-ai-language-models/

Install issue on MacOS, zsh: permission denied

Installing on MacOS using bash script returns zsh: permission denied: ./user_files/venv/bin/activate
installing manually returns zsh: no such file or directory: ./venv/bin/activate (might be a little mistake in the readme maybe?)

fixed it on my machine by using source ./user_files/venv/bin/activate instead

might be one of the causes of the infinite loop in "Starting AI Engine" loading screen

Mac OS Can't install

I'm getting the following error when trying to auto install: /Library/Application Support/Anki2/addons21/1915225457/./macos-install.sh: bad interpreter: /bin/bash^M: no such file or directory

I've also tried manually installing and didn't seem to have any errors but don't see a way to input API key.

Know how I can fix this?

browse dialog error

after adding cards by ankibrain when i open browse dialog this error happens:

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue to the add-on author.
Debug info:
Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.4.3 PyQt 6.4.0
Platform: Windows-10-10.0.19045
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2024-04-15 06:07:43

Caught exception:
Traceback (most recent call last):
File "C:\Users\mahdi\AppData\Roaming\Anki2\addons21\1915225457\AnkiBrain.py", line 49, in reset_ui
mw.reset()
File "aqt.main", line 822, in reset
File "aqt.main", line 774, in _synthesize_op_did_execute_from_reset
File "_aqt.hooks", line 3620, in call
File "aqt.main", line 784, in on_operation_did_execute
File "aqt.overview", line 82, in op_executed
File "aqt.overview", line 73, in refresh_if_needed
File "aqt.overview", line 65, in refresh
File "anki.collection", line 555, in reset
File "anki.collection", line 267, in autosave
File "anki.collection", line 254, in save
File "anki.dbproxy", line 36, in begin
File "anki._backend", line 100, in db_begin
File "anki._backend", line 116, in _db_command
anki.errors.DBError: DbError { info: "SqliteFailure(Error { code: Unknown, extended_code: 1 }, Some("cannot start a transaction within a transaction"))", kind: Other }

Caught exception:
Traceback (most recent call last):
File "C:\Users\mahdi\AppData\Roaming\Anki2\addons21\1915225457\AnkiBrain.py", line 49, in reset_ui
mw.reset()
File "aqt.main", line 822, in reset
File "aqt.main", line 774, in _synthesize_op_did_execute_from_reset
File "_aqt.hooks", line 3620, in call
File "aqt.browser.browser", line 172, in on_operation_did_execute
AttributeError: 'Browser' object has no attribute 'editor'

Allow user to hide at Anki startup

I've tried looking through the setting and seeing if there's an option to hide AnkiBrain by default at launch, but there doesn't seem to be any.

I'd appreciate it if this can be added whenever you comfortably can.

White screen on login

I'm using debian 12, Anki Version ⁨23.12.1 (1a1d4d54)⁩ Python 3.9.15 Qt 5.15.2 PyQt 5.15.5.
Ankibrain version 0.7.2 Beta installed with code in anki add-on. And using regular mode.
Whenever i click login button, it only shows white screen and when i try to reload by clicking right button. It gets stuck on ankibrain is loading screen. I have deleted and installed but the problem still persists. Any solution

White screen when clicking 'Import' on Local Mode

White screen when clicking 'Import' on the left side menu on Local Mode

AnkiBrain 0.7.2
Anki.app Version ⁨23.12.1 (1a1d4d54)⁩
MacOS 13.6.4 (22G513)

The following is logged in terminal:

Qt critical: TypeError: Cannot read properties of null (reading 'documentsStored') 'file:///Users/robkipa/Library/Application%20Support/Anki2/addons21/1915225457/webview/build/index.html:2,'
Qt critical: Uncaught TypeError: Cannot read properties of null (reading 'documentsStored') 'file:///Users/robkipa/Library/Application%20Support/Anki2/addons21/1915225457/webview/build/index.html:2,'

install fails for script

Great add-on
I have trouble with logging-in to the provided site and also installing the python requirements in the advanced mode :
finally i could install pyenv in my windows 10. the problem was that i have both anaconda and python 3.7.9 installed and they do not let pyenv to take the control of python ... now this is the new issue: when i try to install base on github provided data and full install the packages, runing the anki will remove all installed packages and env directory. and the script provided by the add-on cant install the required env in windows and prompts:
venv exists, deleting...
Creating new python virtualenv in ./user_files/venv
Error: Command '['C:\Users\mahdi\AppData\Roaming\Anki2\addons21\1915225457\user_files\venv\Scripts\python3.9.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 3221225781.
.\user_files\venv\Scripts\activate : The term '.\user_files\venv\Scripts\activate' is not recognized as the name of a
cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify
that the path is correct and try again.
At C:\Users\mahdi\AppData\Roaming\Anki2\addons21\1915225457\win-setup-python-env.ps1:23 char:1

  • .\user_files\venv\Scripts\activate
  •   + CategoryInfo          : ObjectNotFound: (.\user_files\venv\Scripts\activate:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.