Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoros committed Nov 12, 2023
1 parent 7fbafa1 commit 69932b1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/config-local-localai.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Local LLM integration with `localai`

Integrate local Large Language Models (LLMs) with [LocalAI](localai.io).
Integrate local Large Language Models (LLMs) with [LocalAI](https://localai.io).

_Last updated Nov 7, 2023_

Expand Down
2 changes: 1 addition & 1 deletion docs/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ requiring the user to enter an API key
| `AZURE_OPENAI_API_KEY` | Azure OpenAI API key, see [config-azure-openai.md](config-azure-openai.md) | Optional, but if set `AZURE_OPENAI_API_ENDPOINT` must also be set |
| `ANTHROPIC_API_KEY` | The API key for Anthropic | Optional |
| `ANTHROPIC_API_HOST` | Changes the backend host for the Anthropic vendor, to enable platforms such as [config-aws-bedrock.md](config-aws-bedrock.md) | Optional |
| `OLLAMA_API_HOST` | Changes the backend host for the Ollama vendor. See [config-ollama.md](config-ollama.md) | |
| `OLLAMA_API_HOST` | Changes the backend host for the Ollama vendor. See [config-ollama.md](config-ollama.md) | |
| `OPENROUTER_API_KEY` | The API key for OpenRouter | Optional |

### Model Observability: Helicone
Expand Down
2 changes: 1 addition & 1 deletion src/apps/chat/components/message/OpenInReplit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface CodeBlockProps {
export function OpenInReplit({ codeBlock }: CodeBlockProps): React.JSX.Element {
const { language } = codeBlock;

const replitLanguageMap: { [key: string]: string } = {
const replitLanguageMap: Record<string, string> = {
python: 'python3',
csharp: 'csharp',
java: 'java',
Expand Down
12 changes: 4 additions & 8 deletions src/apps/models-modal/ModelsSourceSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,22 @@ import { shallow } from 'zustand/shallow';

import { Avatar, Badge, Box, Button, IconButton, ListItemDecorator, MenuItem, Option, Select, Typography } from '@mui/joy';
import AddIcon from '@mui/icons-material/Add';
import CloudDoneOutlinedIcon from '@mui/icons-material/CloudDoneOutlined';
import CloudOutlinedIcon from '@mui/icons-material/CloudOutlined';
import ComputerIcon from '@mui/icons-material/Computer';
import DeleteOutlineIcon from '@mui/icons-material/DeleteOutline';

import { DModelSourceId, useModelsStore } from '~/modules/llms/store-llms';
import { IModelVendor, ModelVendorId } from '~/modules/llms/vendors/IModelVendor';
import { ModelVendorOpenAI } from '~/modules/llms/vendors/openai/openai.vendor';
import { type DModelSourceId, useModelsStore } from '~/modules/llms/store-llms';
import { type IModelVendor, type ModelVendorId } from '~/modules/llms/vendors/IModelVendor';
import { createModelSourceForVendor, findAllVendors, findVendorById } from '~/modules/llms/vendors/vendor.registry';

import { CloseableMenu } from '~/common/components/CloseableMenu';
import { ConfirmationModal } from '~/common/components/ConfirmationModal';
import { hideOnDesktop, hideOnMobile } from '~/common/theme';


function locationIcon(vendor?: IModelVendor | null) {
/*function locationIcon(vendor?: IModelVendor | null) {
if (vendor && vendor.id === 'openai' && ModelVendorOpenAI.hasServerKey)
return <CloudDoneOutlinedIcon />;
return !vendor ? null : vendor.location === 'local' ? <ComputerIcon /> : <CloudOutlinedIcon />;
}
}*/

function vendorIcon(vendor: IModelVendor | null, greenMark: boolean) {
let icon: React.JSX.Element | null = null;
Expand Down
1 change: 0 additions & 1 deletion src/server/api/trpc.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* need to use are documented accordingly near the end.
*/
import { initTRPC } from '@trpc/server';
import { type CreateNextContextOptions } from '@trpc/server/adapters/next';
import superjson from 'superjson';
import { ZodError } from 'zod';

Expand Down

1 comment on commit 69932b1

@vercel
Copy link

@vercel vercel bot commented on 69932b1 Nov 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

big-agi – ./

big-agi-git-main-enricoros.vercel.app
big-agi-enricoros.vercel.app
get.big-agi.com

Please sign in to comment.