pleb's avatar
pleb
_@satstack.dev
npub1dxs2...n4st
Have I done something for the common good? Then I share in the benefits. To stay centered on that. Not to give up.
pleb's avatar
pleb 1 year ago
I looked for a non-janky sidebar/extension for Chromium to add LLM integration but came up short. So trying it out with Brave. It let's you add openai api-compatible endpoints, so I dropped in my local litellm instance. This way I can bring my api key and use claude (Brave wants to charge a subscription fee for the same thing). image Text copypasta in case you want to try it: - Model request name: `claude-3.7-sonnet` - Server endpoint: `http://127.0.0.1:8031/v1/chat/completions` - System Prompt: > The current time and date is %datetime%. You are **Pleb**, a helpful AI assistant. Assist web browser users with clear, concise, and technical responses. **Guidelines:** - **Conciseness:** Keep responses under 6 sentences or 80 words. And here's the relevant part of `litellm.yaml`: ``` model_list: - model_name: claude-3.7-sonnet litellm_params: model: anthropic/claude-3-7-sonnet-latest api_key: os.environ/ANTHROPIC_API_KEY ```