Skip to content

Commit

Permalink
feat: front kit preload code hover, code: change translation model to…
Browse files Browse the repository at this point in the history
… gpt-4o (#311)
  • Loading branch information
ramiroaisen authored May 19, 2024
2 parents 22ae59d + eb53827 commit b065405
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion front/admin/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<meta name="theme-color" content="#ff4136">
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="tap">
<body data-sveltekit-preload-code="hover" data-sveltekit-preload-data="tap">
<div id="app">%sveltekit.body%</div>
<script>
if ('serviceWorker' in navigator) {
Expand Down
2 changes: 1 addition & 1 deletion front/app/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<meta name="theme-color" content="#ff4136">
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="tap">
<body data-sveltekit-preload-code="hover" data-sveltekit-preload-data="tap">
<div id="app">%sveltekit.body%</div>
<script>
if ('serviceWorker' in navigator) {
Expand Down
1 change: 0 additions & 1 deletion front/server/src/defs-patches

This file was deleted.

2 changes: 1 addition & 1 deletion front/server/src/locale/admin/admin.ar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const locale: import("./admin.locale.js").AdminLocale = {
"region": null,

// @notranslate
"logo_text": "openstream",
"logo_text": "openstream",

// @notranslate
"app_name": "Openstream Admin",
Expand Down
4 changes: 2 additions & 2 deletions front/server/src/locale/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ for (const iso of isos) {
})

const createChatCompletion = async function* (params: {
model: "gpt-4" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-4-1106-preview",
model: "gpt-4o" | "gpt-4" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-4-1106-preview",
messages: openai.ChatCompletionMessageParam[]
}) {
const res = await client.chat.completions.create({
Expand Down Expand Up @@ -175,7 +175,7 @@ for (const iso of isos) {
}

const stream = createChatCompletion({
model: "gpt-4-1106-preview",
model: "gpt-4o",
messages
})

Expand Down

0 comments on commit b065405

Please sign in to comment.