Skip to content

Commit

Permalink
router fix, switch to gpt-4o
Browse files Browse the repository at this point in the history
  • Loading branch information
loudar committed May 16, 2024
1 parent 8f73ac9 commit 027da31
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/tooling/Completion.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class Completion {
api: openai,
models: {
quick: "gpt-3.5-turbo-1106",
good: "gpt-4-1106-preview",
good: "gpt-4o",
},
};
} else if (provider === "groq") {
Expand Down
2 changes: 1 addition & 1 deletion ui/js/Router.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class Router {

async handleRouteChange() {
const path = window.location.pathname.substring(1);
const route = this.routes.find(r => path.startsWith(r.path) || (r.aliases && r.aliases.some(a => path.startsWith(a))));
const route = this.routes.find(r => path === r.path || (r.aliases && r.aliases.some(a => path === a)));
this.currentRoute = route;
if (route) {
const params = this.getParams(path, route);
Expand Down
3 changes: 2 additions & 1 deletion ui/js/Routes.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export const routes = [
{
path: 'chat',
title: 'Chat'
title: 'Chat',
aliases: ['']
},
{
path: 'login',
Expand Down

0 comments on commit 027da31

Please sign in to comment.