Browse Source

Merge branch 'dev' into feat/onedrive-file-attach

Timothy Jaeryang Baek 2 months ago
parent
commit
23ff2988bf

+ 2 - 2
backend/open_webui/routers/openai.py

@@ -84,9 +84,9 @@ def openai_o1_o3_handler(payload):
         payload["max_completion_tokens"] = payload["max_tokens"]
         del payload["max_tokens"]
 
-    # Fix: O1 does not support the "system" parameter, Modify "system" to "user"
+    # Fix: o1 and o3 do not support the "system" parameter. Modify "system" to "developer"
     if payload["messages"][0]["role"] == "system":
-        payload["messages"][0]["role"] = "user"
+        payload["messages"][0]["role"] = "developer"
 
     return payload
 

+ 2 - 2
src/lib/components/chat/Messages/CodeBlock.svelte

@@ -464,8 +464,8 @@
 					onSave={() => {
 						saveCode();
 					}}
-					onChange={(e) => {
-						_code = e;
+					onChange={(value) => {
+						_code = value;
 					}}
 				/>
 			</div>

+ 3 - 3
src/lib/components/chat/Messages/Markdown/MarkdownTokens.svelte

@@ -88,14 +88,14 @@
 				code={token?.text ?? ''}
 				{attributes}
 				{save}
-				onCode={(e) => {
-					dispatch('code', e);
+				onCode={(value) => {
+					dispatch('code', value);
 				}}
 				onSave={(e) => {
 					dispatch('update', {
 						raw: token.raw,
 						oldContent: token.text,
-						newContent: e
+						newContent: value
 					});
 				}}
 			/>

+ 2 - 2
src/lib/components/common/CodeEditor.svelte

@@ -79,7 +79,7 @@
 				});
 
 				_value = formattedCode;
-				onChange({ value: _value });
+				onChange(_value);
 				await tick();
 
 				toast.success($i18n.t('Code formatted successfully'));
@@ -98,7 +98,7 @@
 		EditorView.updateListener.of((e) => {
 			if (e.docChanged) {
 				_value = e.state.doc.toString();
-				onChange({ value: _value });
+				onChange(_value);
 			}
 		}),
 		editorTheme.of([]),

File diff suppressed because it is too large
+ 422 - 422
src/lib/i18n/locales/ka-GE/translation.json


+ 5 - 0
src/tailwind.css

@@ -35,6 +35,11 @@
 	button {
 		@apply cursor-pointer;
 	}
+
+	input::placeholder,
+	textarea::placeholder {
+		color: theme(--color-gray-400);
+	}
 }
 
 @custom-variant hover (&:hover);

Some files were not shown because too many files changed in this diff