UNPKG

llmforge

Version:

One API, every AI model, instant switching. Change from GPT-4 to Gemini to local models with a single config update. LLMForge is the lightweight, TypeScript-first solution for multi-provider AI applications with zero vendor lock-in.

70 lines (69 loc) 2.51 kB
[2025-06-19T22:29:34.003Z] [INFO] Static generation [2025-06-19T22:29:34.022Z] [INFO] OpenAI Request: { "model": "gpt-3.5-turbo", "input": [ { "role": "user", "content": "hii my name is harsh?" } ], "text": { "format": { "type": "text" } } } [2025-06-19T22:29:34.022Z] [INFO] base url: https://api.openai.com [2025-06-19T22:29:34.025Z] [INFO] endpoint path: /v1/responses [2025-06-19T22:29:34.024Z] [INFO] base url: https://generativelanguage.googleapis.com [2025-06-19T22:29:34.040Z] [INFO] endpoint path: /v1beta/models/gemini-1.5-flash:generateContent?key=invalid-key [2025-06-19T22:29:34.032Z] [INFO] Static generation [2025-06-19T22:29:34.045Z] [INFO] OpenAI Request: { "model": "gpt-3.5-turbo", "input": [ { "role": "user", "content": "Tell me about machine learning in 50 words." }, { "role": "assistant", "content": "Machine learning is a subset of AI that enables computers to learn and make decisions from data without explicit programming." }, { "role": "user", "content": "Can you give me an example?" } ], "text": { "format": { "type": "text" } } } [2025-06-19T22:29:34.046Z] [INFO] base url: https://api.openai.com [2025-06-19T22:29:34.048Z] [INFO] endpoint path: /v1/responses [2025-06-19T22:29:34.082Z] [INFO] Generating content stream asynchronously [2025-06-19T22:29:34.092Z] [INFO] endpoint path: /v1beta/models/gemini-1.5-flash:streamGenerateContent [2025-06-19T22:29:34.096Z] [INFO] endpoint path: /v1beta/models/gemini-1.5-flash:streamGenerateContent [2025-06-19T22:29:34.095Z] [INFO] base url: https://generativelanguage.googleapis.com [2025-06-19T22:29:34.962Z] [INFO] base url: https://generativelanguage.googleapis.com [2025-06-19T22:29:34.963Z] [INFO] endpoint path: /v1beta/models/gemini-1.5-flash:generateContent?key=invalid-google-key [2025-06-19T22:29:35.263Z] [INFO] Static generation [2025-06-19T22:29:35.264Z] [INFO] OpenAI Request: { "model": "gpt-3.5-turbo", "input": [ { "role": "user", "content": "hii my name is harsh?" } ], "text": { "format": { "type": "text" } } } [2025-06-19T22:29:35.264Z] [INFO] base url: https://api.openai.com [2025-06-19T22:29:35.265Z] [INFO] endpoint path: /v1/responses [2025-06-19T22:29:36.125Z] [INFO] base url: https://generativelanguage.googleapis.com [2025-06-19T22:29:36.125Z] [INFO] endpoint path: /v1beta/models/gemini-1.5-flash:generateContent?key=invalid-2