Skip to content
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

minor renames and version bumps #258

Merged
merged 4 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,870 changes: 2,004 additions & 1,866 deletions package-lock.json

Large diffs are not rendered by default.

66 changes: 33 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "godmode",
"productName": "GodMode",
"version": "1.0.0-beta.8",
"version": "1.0.0-beta.9",
"author": "smol-ai",
"description": "Simultaneously chat with ChatGPT, Claude, Bing, Bard, Llama2, et al in a full chat browser, NO API",
"main": "src/main/main.ts",
Expand Down Expand Up @@ -35,22 +35,22 @@
"dependencies": {
"@headlessui/react": "^1.7.17",
"@heroicons/react": "^2.0.18",
"@radix-ui/react-dialog": "^1.0.4",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-tooltip": "^1.0.6",
"chalk": "^4.1.2",
"@radix-ui/react-tooltip": "^1.0.7",
"chalk": "4.1.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"electron-context-menu": "^3.6.1",
"electron-debug": "^3.2.0",
"electron-log": "^4.4.8",
"electron-store": "^8.1.0",
"electron-updater": "^6.1.1",
"electron-updater": "^6.1.4",
"react": "^18.2.0",
"react-beautiful-dnd": "^13.1.1",
"react-dom": "^18.2.0",
"react-router-dom": "^6.15.0",
"react-router-dom": "^6.16.0",
"react-split": "^2.0.14",
"tailwind-merge": "^1.14.0",
"vex-js": "^4.1.0"
Expand All @@ -65,55 +65,55 @@
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
"@svgr/webpack": "^8.1.0",
"@teamsupercell/typings-for-css-modules-loader": "^2.5.2",
"@testing-library/jest-dom": "^6.0.1",
"@testing-library/jest-dom": "^6.1.3",
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.5.3",
"@types/node": "20.5.2",
"@types/react": "^18.2.20",
"@types/react-beautiful-dnd": "^13.1.4",
"@types/react-dom": "^18.2.7",
"@types/react-test-renderer": "^18.0.0",
"@types/jest": "^29.5.5",
"@types/node": "20.8.2",
"@types/react": "^18.2.25",
"@types/react-beautiful-dnd": "^13.1.5",
"@types/react-dom": "^18.2.10",
"@types/react-test-renderer": "^18.0.3",
"@types/terser-webpack-plugin": "^5.0.4",
"@types/webpack-bundle-analyzer": "^4.6.0",
"@typescript-eslint/eslint-plugin": "^6.4.1",
"@typescript-eslint/parser": "^6.4.1",
"autoprefixer": "^10.4.15",
"@types/webpack-bundle-analyzer": "^4.6.1",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"autoprefixer": "^10.4.16",
"browserslist-config-erb": "^0.0.3",
"concurrently": "^8.2.1",
"core-js": "^3.32.1",
"core-js": "^3.33.0",
"cross-env": "^7.0.3",
"css-loader": "^6.8.1",
"css-minimizer-webpack-plugin": "^5.0.1",
"detect-port": "^1.5.1",
"electron": "^26.0.0",
"electron-builder": "^24.6.3",
"electron": "^26.3.0",
"electron-builder": "^24.6.4",
"electron-devtools-installer": "^3.2.0",
"electronmon": "^2.0.2",
"eslint": "^8.47.0",
"eslint": "^8.50.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-erb": "^4.0.6",
"eslint-import-resolver-typescript": "^3.6.0",
"eslint-config-erb": "^4.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-import-resolver-webpack": "^0.13.7",
"eslint-plugin-compat": "^4.1.4",
"eslint-plugin-compat": "^4.2.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-jest": "^27.4.2",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.5.3",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.6.3",
"jest-environment-jsdom": "^29.6.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"mini-css-extract-plugin": "^2.7.6",
"postcss": "^8.4.28",
"postcss": "^8.4.31",
"postcss-loader": "^7.3.3",
"prettier": "^3.0.2",
"prettier": "^3.0.3",
"react-refresh": "^0.14.0",
"react-test-renderer": "^18.2.0",
"rimraf": "^5.0.1",
"sass": "^1.66.1",
"rimraf": "^5.0.5",
"sass": "^1.68.0",
"sass-loader": "^13.3.2",
"style-loader": "^3.3.3",
"tailwindcss": "^3.3.3",
Expand All @@ -122,10 +122,10 @@
"ts-loader": "^9.4.4",
"ts-node": "^10.9.1",
"tsconfig-paths-webpack-plugin": "^4.1.0",
"typescript": "^5.1.6",
"typescript": "^5.2.2",
"url-loader": "^4.1.1",
"webpack": "^5.88.2",
"webpack-bundle-analyzer": "^4.9.0",
"webpack-bundle-analyzer": "^4.9.1",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1",
"webpack-merge": "^5.9.0"
Expand Down
4 changes: 2 additions & 2 deletions release/app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion release/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "GodMode",
"version": "1.0.0-beta.8",
"version": "1.0.0-beta.9",
"description": "A foundation for scalable desktop apps",
"license": "MIT",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import OobaBooga from '../providers/oobabooga';
import OpenAi from '../providers/openai';
import Perplexity from '../providers/perplexity';
import YouChat from '../providers/you';
import PerplexityLlama from '../providers/perplexity-llama.js';
import PerplexityLlama from '../providers/perplexity-labs.js';
import LeptonLlama from '../providers/lepton-llama.js';
import Phind from '../providers/phind';
import Smol from '../providers/smol';
Expand Down
2 changes: 1 addition & 1 deletion src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import MenuBuilder from './menu';
import { streamChatResponse } from './apify';
import { resolveHtmlPath } from './util';
import { isValidShortcut } from '../lib/utils';
import PerplexityLlama from '../providers/perplexity-llama';
import PerplexityLlama from '../providers/perplexity-labs';
import contextMenu from 'electron-context-menu';

let store = new Store();
Expand Down
4 changes: 3 additions & 1 deletion src/providers/bard.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ class Bard extends Provider {
static handleInput(input) {
const fullName = this.fullName;
this.getWebview().executeJavaScript(`{
var inputElement = document.querySelector("#mat-input-0");
var inputElement = document.querySelector(".ql-editor.textarea");
if (inputElement) {
const inputEvent = new Event('input', { bubbles: true });
inputElement.value = \`${input}\`; // must be escaped backticks to support multiline
inputElement.dispatchEvent(inputEvent);
// bard is weird
inputElement.querySelector('p').textContent = \`${input}\`
}
}
`);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const Provider = require('./provider');

class PerplexityLlama extends Provider {
static webviewId = 'webiewPerplexityLlama';
static fullName = 'Llama 2 (via Perplexity)';
static shortName = 'Llama2-Perplexity';
class PerplexityLabs extends Provider {
static webviewId = 'webiewPerplexityLabs';
static fullName = 'Perplexity Labs (Llama, Mistral)';
static shortName = 'Perplexity-Labs';

static url = 'https://labs.perplexity.ai/';

Expand All @@ -19,7 +19,7 @@ class PerplexityLlama extends Provider {
}
}`);
} catch (e) {
console.debug('Error in PerplexityLlama.handleInput():', e);
console.debug('Error in PerplexityLabs.handleInput():', e);
}
}

Expand Down Expand Up @@ -54,7 +54,7 @@ class PerplexityLlama extends Provider {
}
`);
} catch (e) {
console.debug('Error in PerplexityLlama.handleSubmit():', e);
console.debug('Error in PerplexityLabs.handleSubmit():', e);
}
}

Expand All @@ -79,7 +79,7 @@ class PerplexityLlama extends Provider {
}`);
}, 1000);
} catch (e) {
console.debug('Error in PerplexityLlama.handleCss():', e);
console.debug('Error in PerplexityLabs.handleCss():', e);
}
// Hide the "Try asking" segment
setTimeout(() => {
Expand All @@ -101,4 +101,4 @@ class PerplexityLlama extends Provider {
}
}

module.exports = PerplexityLlama;
module.exports = PerplexityLabs;
2 changes: 1 addition & 1 deletion src/providers/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class Provider {
}

static getUserAgent() {
return 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 Edg/91.0.864.37';
return 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36';
}

static isEnabled() {
Expand Down