UNPKG

@ejazullah/smart-browser-automation

Version:

A smart AI-driven browser automation library and REST API server using MCP (Model Context Protocol) and LangChain for multi-step task execution. Includes both programmatic library usage and HTTP API server for remote automation.

38 lines (33 loc) 790 B
/** * Configuration helpers for different LLM providers */ /** * Hugging Face configuration */ export class HuggingFaceConfig { constructor(apiKey, model = "Qwen/Qwen3-Coder-480B-A35B-Instruct") { this.apiKey = apiKey; this.model = model; this.baseURL = "https://router.huggingface.co/v1"; } } /** * Ollama configuration */ export class OllamaConfig { constructor(baseURL = "http://localhost:11434", model = "llama2", apiKey = null) { this.baseURL = baseURL; this.model = model; this.apiKey = apiKey; // Ollama doesn't require API key } } /** * OpenAI configuration */ export class OpenAIConfig { constructor(apiKey, model = "gpt-4") { this.apiKey = apiKey; this.model = model; this.baseURL = "https://api.openai.com/v1"; } }