forked from Shinonome/dots-hyprland
ai: add icon for phi
This commit is contained in:
@@ -0,0 +1,54 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
viewBox="0 0 20.999999 20.999999"
|
||||||
|
version="1.1"
|
||||||
|
id="svg4"
|
||||||
|
sodipodi:docname="Microsoft_icon.svg"
|
||||||
|
width="20"
|
||||||
|
height="20"
|
||||||
|
inkscape:version="1.4.1 (93de688d07, 2025-03-30)"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<defs
|
||||||
|
id="defs4" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview4"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#000000"
|
||||||
|
borderopacity="0.25"
|
||||||
|
inkscape:showpageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"
|
||||||
|
inkscape:zoom="19.142857"
|
||||||
|
inkscape:cx="10.970149"
|
||||||
|
inkscape:cy="12.746269"
|
||||||
|
inkscape:window-width="1197"
|
||||||
|
inkscape:window-height="1028"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg4" />
|
||||||
|
<path
|
||||||
|
fill="#f35325"
|
||||||
|
d="M 0,0 H 10 V 10 H 0 Z"
|
||||||
|
id="path1"
|
||||||
|
style="fill:#000000" />
|
||||||
|
<path
|
||||||
|
fill="#81bc06"
|
||||||
|
d="M 11,0 H 21 V 10 H 11 Z"
|
||||||
|
id="path2"
|
||||||
|
style="fill:#000000" />
|
||||||
|
<path
|
||||||
|
fill="#05a6f0"
|
||||||
|
d="M 0,11 H 10 V 21 H 0 Z"
|
||||||
|
id="path3"
|
||||||
|
style="fill:#000000" />
|
||||||
|
<path
|
||||||
|
fill="#ffba08"
|
||||||
|
d="M 11,11 H 21 V 21 H 11 Z"
|
||||||
|
id="path4"
|
||||||
|
style="fill:#000000" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.4 KiB |
@@ -10,6 +10,7 @@ function guessModelLogo(model) {
|
|||||||
if (model.includes("llama")) return "ollama-symbolic";
|
if (model.includes("llama")) return "ollama-symbolic";
|
||||||
if (model.includes("gemma")) return "google-gemini-symbolic";
|
if (model.includes("gemma")) return "google-gemini-symbolic";
|
||||||
if (model.includes("deepseek")) return "deepseek-symbolic";
|
if (model.includes("deepseek")) return "deepseek-symbolic";
|
||||||
|
if (/^phi\d*:/i.test(model)) return "microsoft-symbolic";
|
||||||
return "ollama-symbolic";
|
return "ollama-symbolic";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -277,6 +278,7 @@ class GPTService extends Service {
|
|||||||
"stream": true,
|
"stream": true,
|
||||||
"keep_alive": userOptions.ai.keepAlive,
|
"keep_alive": userOptions.ai.keepAlive,
|
||||||
};
|
};
|
||||||
|
// console.log(body);
|
||||||
const proxyResolver = new Gio.SimpleProxyResolver({ 'default-proxy': userOptions.ai.proxyUrl });
|
const proxyResolver = new Gio.SimpleProxyResolver({ 'default-proxy': userOptions.ai.proxyUrl });
|
||||||
const session = new Soup.Session({ 'proxy-resolver': proxyResolver });
|
const session = new Soup.Session({ 'proxy-resolver': proxyResolver });
|
||||||
const message = new Soup.Message({
|
const message = new Soup.Message({
|
||||||
|
|||||||
Reference in New Issue
Block a user