Skip to content

Commit

Permalink
fix: replace logo svg
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbaku authored and AlmogBaku committed May 10, 2024
1 parent 5f35a38 commit d585020
Show file tree
Hide file tree
Showing 10 changed files with 1,144 additions and 30 deletions.
643 changes: 641 additions & 2 deletions .pnp.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h1><picture>
<source media="(prefers-color-scheme: dark)" srcset="./logo-light.svg">
<img alt="LLM Playground" src="./logo.svg">
<img alt="LLM Playground" src="./src/assets/logo.svg">
</picture></h1>

LLM Playground is a versatile environment for experimenting with different large language models (LLMs). It facilitates basic evaluation and comparisons directly in your browser, without the need to set up projects or write code in Jupyter notebooks. This tool supports a variety of LLMs, including OpenAI models, through configurable endpoints.
Expand Down
38 changes: 30 additions & 8 deletions logo-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions logo.svg

This file was deleted.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@
"dependencies": {
"@lexical/react": "^0.14.5",
"@microsoft/fetch-event-source": "^2.0.1",
"@svgr/plugin-jsx": "^8.1.0",
"@svgr/plugin-svgo": "^8.1.0",
"lexical": "^0.14.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-icons": "^5.2.0",
"react-select": "^5.8.0"
"react-select": "^5.8.0",
"vite-plugin-svgr": "^4.2.0"
},
"devDependencies": {
"@types/react": "^18.3.1",
Expand Down
5 changes: 3 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import Chat from "./Chat.js";
import {HistoricalBrowser} from "./components/HistoricalBrowser.tsx";
import {HistoricalRecord} from "./HistoryContext.tsx";
import {useState} from "react";
import {TbHistory, TbHistoryToggle, TbMoon, TbSandbox, TbSun, TbSunMoon} from "react-icons/tb";
import {TbHistory, TbHistoryToggle, TbMoon, TbSun, TbSunMoon} from "react-icons/tb";
import Completions from "./Completions.tsx";
import Logo from "./assets/Logo.svg?react";

function App() {
const [showHistory, setShowHistory] = useState(false);
Expand All @@ -31,7 +32,7 @@ function App() {
return <div className="App flex h-screen flex-col p-3">
<div className="navbar bg-base-100 gap-2 mb-3 shadow-md rounded-box">
<div className="flex-1">
<a className="btn btn-ghost text-xl"><TbSandbox/> LLM Playground</a>
<Logo className="w-64" />
</div>
<div className="flex-none">
<ul className="menu menu-horizontal px-1">
Expand Down
31 changes: 31 additions & 0 deletions src/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/// <reference types="vite/client" />
/// <reference types="vite-plugin-svgr/client" />
10 changes: 9 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
import {defineConfig} from 'vite'
import react from '@vitejs/plugin-react'
import svgr from "vite-plugin-svgr";

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [react(), svgr({
svgrOptions: {
plugins: ["@svgr/plugin-svgo", "@svgr/plugin-jsx"],
svgoConfig: {
floatPrecision: 2,
},
},
})],
base: '/static/'
})
Loading

0 comments on commit d585020

Please sign in to comment.