v1.1.5
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## v1.1.5
|
||||||
|
|
||||||
|
- Support for gpt-5
|
||||||
|
|
||||||
## v1.1.4
|
## v1.1.4
|
||||||
|
|
||||||
- Support for all `o` models
|
- Support for all `o` models
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
href="https://www.flaticon.com/free-icons/mortarboard" target="_blank" rel="noopener noreferrer"
|
href="https://www.flaticon.com/free-icons/mortarboard" target="_blank" rel="noopener noreferrer"
|
||||||
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>
|
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>
|
||||||
|
|
||||||
# MoodleGPT 1.1.4
|
# MoodleGPT 1.1.5
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ Find the extension on the Chrome Webstore right [here](https://chrome.google.com
|
|||||||
|
|
||||||
## Summary
|
## Summary
|
||||||
|
|
||||||
- [MoodleGPT 1.1.4](#moodlegpt-114)
|
- [MoodleGPT 1.1.5](#moodlegpt-115)
|
||||||
- [Chrome Webstore](#chrome-webstore)
|
- [Chrome Webstore](#chrome-webstore)
|
||||||
- [Summary](#summary)
|
- [Summary](#summary)
|
||||||
- [Disclaimer !](#disclaimer-)
|
- [Disclaimer !](#disclaimer-)
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "MoodleGPT",
|
"name": "MoodleGPT",
|
||||||
"version": "1.1.4",
|
"version": "1.1.5",
|
||||||
"description": "Hidden chat-gpt for your moodle quiz",
|
"description": "Hidden chat-gpt for your moodle quiz",
|
||||||
"permissions": ["storage"],
|
"permissions": ["storage"],
|
||||||
"action": {
|
"action": {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Generated
+6
-6
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "moodlegpt",
|
"name": "moodlegpt",
|
||||||
"version": "1.1.4",
|
"version": "1.1.5",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "moodlegpt",
|
"name": "moodlegpt",
|
||||||
"version": "1.1.4",
|
"version": "1.1.5",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "^9.32.0",
|
"@eslint/js": "^9.32.0",
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
"@typescript-eslint/parser": "^8.38.0",
|
"@typescript-eslint/parser": "^8.38.0",
|
||||||
"eslint": "^9.32.0",
|
"eslint": "^9.32.0",
|
||||||
"eslint-config-prettier": "^10.1.8",
|
"eslint-config-prettier": "^10.1.8",
|
||||||
"openai": "^5.11.0",
|
"openai": "^5.23.2",
|
||||||
"prettier": "^3.6.2",
|
"prettier": "^3.6.2",
|
||||||
"rollup": "^4.46.2",
|
"rollup": "^4.46.2",
|
||||||
"rollup-plugin-ts": "^3.2.0",
|
"rollup-plugin-ts": "^3.2.0",
|
||||||
@@ -2160,9 +2160,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/openai": {
|
"node_modules/openai": {
|
||||||
"version": "5.11.0",
|
"version": "5.23.2",
|
||||||
"resolved": "https://registry.npmjs.org/openai/-/openai-5.11.0.tgz",
|
"resolved": "https://registry.npmjs.org/openai/-/openai-5.23.2.tgz",
|
||||||
"integrity": "sha512-+AuTc5pVjlnTuA9zvn8rA/k+1RluPIx9AD4eDcnutv6JNwHHZxIhkFy+tmMKCvmMFDQzfA/r1ujvPWB19DQkYg==",
|
"integrity": "sha512-MQBzmTulj+MM5O8SKEk/gL8a7s5mktS9zUtAkU257WjvobGc9nKcBuVwjyEEcb9SI8a8Y2G/mzn3vm9n1Jlleg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "moodlegpt",
|
"name": "moodlegpt",
|
||||||
"version": "1.1.4",
|
"version": "1.1.5",
|
||||||
"description": "This extension allows you to hide CHAT-GPT in a Moodle quiz.",
|
"description": "This extension allows you to hide CHAT-GPT in a Moodle quiz.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run prettier && npm run lint && npm run fastBuild",
|
"build": "npm run prettier && npm run lint && npm run fastBuild",
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
"@typescript-eslint/parser": "^8.38.0",
|
"@typescript-eslint/parser": "^8.38.0",
|
||||||
"eslint": "^9.32.0",
|
"eslint": "^9.32.0",
|
||||||
"eslint-config-prettier": "^10.1.8",
|
"eslint-config-prettier": "^10.1.8",
|
||||||
"openai": "^5.11.0",
|
"openai": "^5.23.2",
|
||||||
"prettier": "^3.6.2",
|
"prettier": "^3.6.2",
|
||||||
"rollup": "^4.46.2",
|
"rollup": "^4.46.2",
|
||||||
"rollup-plugin-ts": "^3.2.0",
|
"rollup-plugin-ts": "^3.2.0",
|
||||||
|
|||||||
@@ -34,10 +34,7 @@ async function getChatGPTResponse(
|
|||||||
model: config.model,
|
model: config.model,
|
||||||
messages: contentHandler.messages,
|
messages: contentHandler.messages,
|
||||||
|
|
||||||
temperature: 0.1, // Controls the randomness of the generated responses, with lower values producing more deterministic and predictable outputs. With set to 0.1 instead of 0 for more creativity.
|
max_completion_tokens: config.maxTokens || 2000 // Maximum length of the response,
|
||||||
top_p: 0.6, // Determines the diversity of the generated responses
|
|
||||||
presence_penalty: 0, // Encourages the model to introduce new concepts by penalizing words that have already appeared in the text.
|
|
||||||
max_tokens: config.maxTokens || 2000 // Maximum length of the response,
|
|
||||||
}),
|
}),
|
||||||
{ signal: config.timeout ? controller.signal : null }
|
{ signal: config.timeout ? controller.signal : null }
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -9,11 +9,6 @@ import { ChatCompletionCreateParamsNonStreaming } from 'openai/resources/chat/co
|
|||||||
export function fixeO(model: string, data: ChatCompletionCreateParamsNonStreaming) {
|
export function fixeO(model: string, data: ChatCompletionCreateParamsNonStreaming) {
|
||||||
if (model.search(/^o\d+/gi) === -1) return data;
|
if (model.search(/^o\d+/gi) === -1) return data;
|
||||||
|
|
||||||
if (data.max_tokens) {
|
|
||||||
data.max_completion_tokens = data.max_tokens;
|
|
||||||
delete data.max_tokens;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (data.temperature) delete data.temperature;
|
if (data.temperature) delete data.temperature;
|
||||||
|
|
||||||
if (data.top_p) delete data.top_p;
|
if (data.top_p) delete data.top_p;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const CURRENT_VERSION = '1.1.4';
|
const CURRENT_VERSION = '1.1.5';
|
||||||
const versionDisplay = document.querySelector('#version')!;
|
const versionDisplay = document.querySelector('#version')!;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+2
-4
@@ -2,15 +2,13 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"baseUrl": "src",
|
"baseUrl": "src",
|
||||||
"module": "ESNext",
|
"module": "esnext",
|
||||||
|
"target": "ES6",
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"target": "ES6",
|
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
"moduleResolution": "node",
|
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"outDir": "extension",
|
"outDir": "extension",
|
||||||
"resolveJsonModule": true,
|
|
||||||
"types": ["node", "chrome"],
|
"types": ["node", "chrome"],
|
||||||
"typeRoots": ["node_modules/@types"],
|
"typeRoots": ["node_modules/@types"],
|
||||||
"strictBindCallApply": true
|
"strictBindCallApply": true
|
||||||
|
|||||||
Reference in New Issue
Block a user