wandb / openui

OpenUI let's you describe UI using your imagination, then see it rendered live.
https://openui.fly.dev
Apache License 2.0
16.86k stars 1.47k forks source link

Support for Groq models #101

Closed tlo9 closed 1 month ago

tlo9 commented 1 month ago

This adds the ability to load a list of active Groq models and display them in the Settings component. Separate GROQ_API_KEY and GROQ_BASE_URL environment variables have been added so that both OpenAI and Groq models can be selected from the settings without having to change keys/urls. The url used for the OpenAI API may be set via the OPENAI_BASE_URL environmental variable.

Resolves #73 Resolves #81 Resolves #91

socket-security[bot] commented 1 month ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@codemirror/lang-markdown@6.2.5 Transitive: environment +14 3.36 MB marijn
npm/@codemirror/language-data@6.5.1 Transitive: environment +40 7.17 MB marijn
npm/@nabla/vite-plugin-eslint@2.0.4 Transitive: environment +11 404 kB martinraison
npm/@tailwindcss/typography@0.5.13 None +6 381 kB adamwathan
npm/@tanstack/react-query@5.35.5 None 0 0 B
npm/@testing-library/jest-dom@6.4.5 Transitive: eval +65 3.89 MB testing-library-bot
npm/@testing-library/react@14.3.1 environment +2 5.72 MB testing-library-bot
npm/@types/react-dom@18.3.0 None 0 37.8 kB types
npm/@types/react-syntax-highlighter@15.5.13 None 0 196 kB types
npm/@types/react@18.3.1 None +2 1.69 MB types
npm/@typescript-eslint/eslint-plugin@7.8.0 Transitive: environment, filesystem +42 8.21 MB jameshenry
npm/@typescript-eslint/parser@7.8.0 Transitive: environment, filesystem +34 3.42 MB jameshenry
npm/@uiw/codemirror-theme-vscode@4.22.0 Transitive: environment +9 2.42 MB wcjiang
npm/@uiw/react-codemirror@4.22.0 Transitive: environment +18 7.12 MB wcjiang
npm/@vitest/coverage-istanbul@1.6.0 Transitive: environment, filesystem, unsafe +75 12.2 MB vitestbot
npm/clsx@2.1.1 None 0 8.55 kB lukeed
npm/cypress@13.9.0 environment, filesystem, shell, unsafe Transitive: eval, network +169 22.9 MB atofstryker
npm/eslint-plugin-cypress@2.15.2 None +1 162 kB cypress-npm-publisher
npm/eslint-plugin-react-hooks@4.6.2 environment 0 118 kB react-bot
npm/eslint-plugin-testing-library@6.2.2 filesystem Transitive: environment +41 3.92 MB testing-library-bot
npm/groq-sdk@0.3.3 environment, network +28 13.5 MB grea
npm/jotai@2.8.0 None 0 513 kB daishi
npm/msw@2.3.0 environment, filesystem, shell +50 8.65 MB kettanaito
npm/nanoid@5.0.7 None 0 10.9 kB ai
npm/ollama@0.5.1 None 0 0 B
npm/openai@4.44.0 environment, network +22 15.3 MB dschnurr-openai
npm/prettier-plugin-tailwindcss@0.5.14 None 0 2.57 MB thecrypticace
npm/react-dom@18.3.1 environment +3 4.63 MB react-bot
npm/react-router-dom@6.23.1 None 0 0 B
npm/react@18.3.1 environment +2 339 kB react-bot
npm/stylelint@16.5.0 environment Transitive: eval, filesystem, unsafe +106 8.43 MB ybiquitous
npm/tailwind-merge@2.3.0 None +2 989 kB dcas
npm/typescript@5.4.5 None 0 32.4 MB typescript-bot
npm/vite-plugin-pwa@0.19.8 filesystem Transitive: environment +20 783 kB userquin
npm/vite@5.2.11 environment, eval, filesystem, network, shell, unsafe +57 281 MB vitebot
npm/vitest@1.6.0 environment, eval Transitive: filesystem, shell, unsafe +62 7.77 MB vitestbot
npm/workbox-build@7.1.0 filesystem Transitive: environment, eval, network, shell, unsafe +352 87.8 MB tropicadri
npm/workbox-window@7.1.0 environment +2 880 kB tropicadri

🚮 Removed packages: npm/@codemirror/lang-markdown@6.2.4, npm/@codemirror/language-data@6.4.1, npm/@nabla/vite-plugin-eslint@2.0.2, npm/@tailwindcss/typography@0.5.12, npm/@tanstack/react-query@5.28.9, npm/@testing-library/jest-dom@6.4.2, npm/@testing-library/react@14.2.2, npm/@types/react-dom@18.2.23, npm/@types/react-syntax-highlighter@15.5.11, npm/@types/react@18.2.73, npm/@typescript-eslint/eslint-plugin@7.4.0, npm/@typescript-eslint/parser@7.4.0, npm/@uiw/codemirror-theme-vscode@4.21.25, npm/@uiw/react-codemirror@4.21.25, npm/@vitest/coverage-istanbul@1.4.0, npm/clsx@2.1.0, npm/cypress@13.7.1, npm/eslint-plugin-cypress@2.15.1, npm/eslint-plugin-react-hooks@4.6.0, npm/eslint-plugin-testing-library@6.2.0, npm/jotai@2.7.2, npm/msw@2.2.13, npm/nanoid@5.0.6, npm/ollama@0.5.0, npm/openai@4.31.0, npm/prettier-plugin-tailwindcss@0.5.13, npm/react-dom@18.2.0, npm/react-router-dom@6.22.3, npm/react@18.2.0, npm/stylelint@16.3.1, npm/tailwind-merge@2.2.2, npm/typescript@5.4.3, npm/vite-plugin-pwa@0.19.7, npm/vite@5.2.7, npm/vitest@1.4.0, npm/workbox-build@7.0.0, npm/workbox-window@7.0.0

View full report↗︎

vanpelt commented 1 month ago

@tlo9 I brought most of this over and refactored a bit in this PR.

vanpelt commented 1 month ago

This is now merged into master: https://github.com/wandb/openui/pull/115