Skip to content

Commit fffc0d5

Browse files
authored
Merge pull request #54 from yoannchb-pro/dev
v1.1.3
2 parents 79a75fe + e561227 commit fffc0d5

18 files changed

+1382
-1723
lines changed

.eslintrc.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CHANGELOG
22

3+
## v1.1.3
4+
5+
- Added `base url` and `max token` in config (by dmunozv04)
6+
- Code dependencies update
7+
38
## v1.1.2
49

510
- Advanced settings

README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
href="https://www.flaticon.com/free-icons/mortarboard" target="_blank" rel="noopener noreferrer"
33
title="Mortarboard icons created by itim2101 - Flaticon" ><img src="./extension/icon.png" alt="Mortarboard icons created by itim2101 - Flaticon" width="150" style="display:block; margin:auto;"></a></p>
44

5-
# MoodleGPT 1.1.2
5+
# MoodleGPT 1.1.3
66

77
This extension allows you to hide CHAT-GPT in a Moodle quiz. You just need to click on the question you want to solve, and CHAT-GPT will automatically provide the answer. However, one needs to be careful because as we know, CHAT-GPT can make errors especially in calculations.
88

@@ -12,15 +12,17 @@ Find the extension on the Chrome Webstore right [here](https://chrome.google.com
1212

1313
## Summary
1414

15-
- [MoodleGPT 1.1.2](#moodlegpt-112)
15+
- [MoodleGPT 1.1.3](#moodlegpt-113)
1616
- [Chrome Webstore](#chrome-webstore)
1717
- [Summary](#summary)
1818
- [Disclaimer !](#disclaimer-)
1919
- [Donate](#donate)
2020
- [Update](#update)
2121
- [Set up](#set-up)
22-
- [Mode](#mode)
2322
- [Settings](#settings)
23+
- [Advanced Settings](#advanced-settings)
24+
- [Mode](#mode)
25+
- [Options](#options)
2426
- [Internal other features](#internal-other-features)
2527
- [Support table](#support-table)
2628
- [Supported questions type](#supported-questions-type)
@@ -61,6 +63,17 @@ See the [changelog](./CHANGELOG.md) to see every updates !
6163

6264
Go to <b>"Manage my extensions"</b> on your browser, then click on <b>"Load unpacked extension"</b> and select the <b>"extension"</b> folder. Afterwards, click on the extension icon and enter the ApiKey obtained from [openai api](https://platform.openai.com/api-keys). Finally, select a [gpt model](https://platform.openai.com/docs/models) (ensure it work with completion api).
6365

66+
## Settings
67+
68+
- <b>API KEY\*</b>: Your openai [API KEY](https://platform.openai.com/api-keys)
69+
- <b>GPT MODEL\*</b>: The [gpt model](https://platform.openai.com/docs/models) (you can click on the play button to ensure the model work with the extension)
70+
71+
## Advanced Settings
72+
73+
- <b>CODE</b>: A code you will need to type on your keyboard to inject/remove the extension code from the moodle page. It allow you to be more discret and control the injection so it's recommended.
74+
- <b>BASE URL</b>: The API endpoint if you need to use your own llm.
75+
- <b>MAX TOKENS</b>: The max tokens length you want the api to respond with.
76+
6477
## Mode
6578

6679
<p align="center">
@@ -72,7 +85,7 @@ Go to <b>"Manage my extensions"</b> on your browser, then click on <b>"Load unpa
7285
- <b>Question to answer:</b> The question is converted to the answer and you can click on it to show back the question (or show back the answer).
7386
<br/><img src="./assets/question-to-answer.gif" alt="Question to Answer">
7487

75-
## Settings
88+
## Options
7689

7790
<p align="center">
7891
<img src="./assets/settings.png" alt="Popup" width="300">

eslint.config.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
const js = require('@eslint/js');
2+
const tsParser = require('@typescript-eslint/parser');
3+
const tsPlugin = require('@typescript-eslint/eslint-plugin');
4+
const prettierConfig = require('eslint-config-prettier');
5+
const tseslint = require('typescript-eslint');
6+
7+
module.exports = [
8+
{
9+
ignores: ['**/node_modules/*', '**/dist/*', '**/*.js']
10+
},
11+
12+
js.configs.recommended,
13+
...tseslint.configs.recommended,
14+
15+
{
16+
files: ['**/*.ts'],
17+
languageOptions: {
18+
parser: tsParser,
19+
ecmaVersion: 'latest',
20+
sourceType: 'module'
21+
},
22+
plugins: {
23+
'@typescript-eslint': tsPlugin
24+
},
25+
rules: {
26+
...tsPlugin.configs['eslint-recommended'].rules,
27+
...tsPlugin.configs.recommended.rules,
28+
...prettierConfig.rules,
29+
'@typescript-eslint/no-explicit-any': 'off'
30+
}
31+
}
32+
];

extension/MoodleGPT.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extension/MoodleGPT.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extension/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "MoodleGPT",
4-
"version": "1.1.2",
4+
"version": "1.1.3",
55
"description": "Hidden chat-gpt for your moodle quiz",
66
"permissions": ["storage"],
77
"action": {

extension/popup/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ <h1>MoodleGPT</h1>
5656
<label for="code" class="textLabel">Code:</label>
5757
<input id="code" type="text" />
5858
</div>
59+
<div class="line center">
60+
<label for="baseURL" class="textLabel">Base URL:</label>
61+
<input id="baseURL" type="text" />
62+
</div>
63+
<div class="line center">
64+
<label for="maxTokens" class="textLabel">Max Tokens:</label>
65+
<input id="maxTokens" type="number" />
66+
</div>
5967
</div>
6068

6169
<!-- SWITCH SETTINGS MODE -->

extension/popup/popup.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extension/popup/popup.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)