Giter Site home page Giter Site logo

codeacme17 / examor Goto Github PK

View Code? Open in Web Editor NEW
1.0K 13.0 66.0 9.46 MB

For students, scholars, interviewees and lifelong learners. Let LLMs assist you in learning 🎓

License: GNU Affero General Public License v3.0

JavaScript 0.46% HTML 0.09% Vue 22.99% TypeScript 54.93% SCSS 2.03% Python 17.52% Dockerfile 0.16% Shell 1.36% CSS 0.45%
openai learning-app ebbinghaus-memory azure gpt-4 claude2

examor's Introduction

examor's People

Contributors

codeacme17 avatar ekkosun avatar jokinyang avatar woyin 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  avatar  avatar  avatar  avatar  avatar  avatar

examor's Issues

[FEAT]: 关于所支持的大语言模型接口的额外建议

Description

GPT4收费太贵

  • 发现就不到10道题就要耗费掉大约1美金

关于是否能够支持智谱清言ChatGLM的api-key的请求

  • 因为经常使用智谱清言,觉得其对中文的支持度较好
  • 自己的笔记多是中文,因此希望您能在百忙之中抽出一点时间,额外增加一个国内大预言模型的api-key支持可以吗

[CHAT]: 'x-ratelimit-limit-requests'

Description

您好,我是docker安装的程序,使用chatgpt3.5的api调用时,无论是回答还是创建笔记都会在浏览器上方'弹出x-ratelimit-limit-requests'错误,请问是什么原因?
而当我更换到chatgpt4.0的api时是可以使用的,无论是回答还是创建笔记

[BUG]: fail to start examor-server-1 container

Description of the bug

Unable up the compose env, because of fail to start the examor-server-1 .
output log as below:

2023-09-01 14:27:57 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:27:58 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:27:59 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:28:00 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:28:02 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:28:05 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:28:12 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:28:25 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:28:51 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:29:43 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:30:43 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:31:43 /usr/bin/env: ‘bash\r’: No such file or directory
2023-09-01 14:32:44 /usr/bin/env: ‘bash\r’: No such file or directory

the command I used :

git clone https://github.com/codeacme17/examor.git
cd examor
docker-compose up

version I used:

> git log -n 1
commit 6fec558a4667a002cd18de3f563ab29e7523169e (HEAD -> main, origin/main, origin/HEAD)
Author: codeacme17 <[email protected]>
Date:   Thu Aug 31 21:08:51 2023 +0800

    fix: fix some bugs

[BUG]: profile中如果设置的ORGANIZATION字符串过长导致profile更新不成功

Description of the bug

我在测试的时候无意间将organization那里填写了api-key,提交profile之后ui没有错误提示并且profile界面跟提交成功时一模一样,但是服务器端的log是

mysql error: 提示organization太长,无法更新数据库。 

然后我看了您的代码,我发现在mysql_handler这个类里面的操作虽然都进行了异常和错误的处理,但是这些错误并没有抛出进行处理,所以前端无法响应这些错误。比如说这个函数:
1

(我的开发经验比较少,可能提出的意见并不好)

有没有比较简单的教程?

Description

运行完docker-compose up后出现很多这个No such file or directory,不过可以打开那个localhost的网址
image

但是添加笔记页面提示有问题
image
image

[BUG]: docker-compose up报错

Description of the bug

作者,我刚下载了docker for mac的桌面版,然后按照你的文档运行docker-compose up之后就开始下载一堆东西,后面就开始报错了,原因我也看不太懂。新手,不知道要怎么解决了,谷歌也搜不出来答案,只能来这里寻求一下帮助了。另外,我也设置了docker的国内镜像了,也还是会报错。
image

My current confusion and request | 我目前的一些困惑和请求

I'm not quite sure if anyone is actually using this project. If you are using it, I would really appreciate it if you could leave a comment here and provide me with some feedback because it's really important to me! 🙏 Many thanks!


现在我不太清楚有没有人真的在使用这个项目。如果您有在使用的话,很希望您能在这里发表一个留言,给我一些反馈,因为这对我真的十分重要!🙏非常感谢!

点击上传后一直转圈圈

Description of the bug

作者您好,我在昨天(21号)拉取了你最新的代码,然后运行docker-composer up -d,项目被正常拉取并build后能正常运行

然后我在profile一栏进行api key的配置,完成配置后点击提交,没有任何的提示

再回到首页新增md笔记,填写好笔记的名字和选择了md文件后,点击上传却一直在转圈圈

整个流程belike:

graph LR
    1(配置`api key`) --> 返回首页 --> 点击新增笔记 --> 填写笔记名称 --> 点击选择文件 --> 点击上传 --> 上传按钮转圈圈
    上传按钮转圈圈 --> 点击上传

[BUG]: For the case of error reporting when uploading files | 对于上传时文件时出现报错的情况

Description of the bug

Appear in:#31

265305903-3a9012a2-9cdf-4d6e-b60e-f9abef7323f3

I currently think it is due to limits caused by users using unpaid Openai accounts, of course, it may also be caused by other problems. This week I will focus on solving this bug


我目前认为是由于用户使用未付费的 Openai 账号使得出现了限制, 当然也有可能是由于其他的问题导致的。这本周我会专注于解决这个 Bug

[BUG]: upload note return server internal error

Description of the bug

I uploaded a md file but the server returned 500, and the following is the log of server:

INFO:     192.168.228.4:48302 - "POST /note HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
    return await self.app(scope, receive, send)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 289, in __call__
    await super().__call__(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 122, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 184, in __call__
    raise exc
  File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
    raise exc
  File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
    raise e
  File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__
    await route.handle(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
    response = await func(request)
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 273, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 190, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/main.py", line 63, in add_note
    return await _apis_.note.add_note(language, questionType, noteName, files, notionId)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/apis/note.py", line 62, in add_note
    if (len(files) > 3):
        ^^^^^^^^^^
TypeError: object of type 'NoneType' has no len()

Environment:

Macos 14 Beta, M1 chip
OpenAI Key with API_BASE setup

[BUG]: mac m1 startup error

Description of the bug

My system version is mac m1

node version is not support , Can be replace with FORM node:18-alpine
image

can't uspport mysql,Can be replaced with FROM mariadb:latest
image

After replacement, it can run normally

[BUG]: Can not add new notes

Description of the bug

I used the latest version of examor and can't add any new notes. The UI showed some error messages: Expecting value: line 1 column 1 (char 0). However, I can import notes from existing question bank.
I tried many notes including the example but all failed.

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.