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
Plain Text
[] [INFO] Static generation
[] [INFO] OpenAI Request: {
"model": "gpt-3.5-turbo",
"input": [
{
"role": "user",
"content": "hii my name is harsh?"
}
],
"text": {
"format": {
"type": "text"
}
}
}
[] [INFO] base url: https://api.openai.com
[] [INFO] endpoint path: /v1/responses
[] [INFO] base url: https://generativelanguage.googleapis.com
[] [INFO] endpoint path: /v1beta/models/gemini-1.5-flash:generateContent?key=invalid-key
[] [INFO] Static generation
[] [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"
}
}
}
[] [INFO] base url: https://api.openai.com
[] [INFO] endpoint path: /v1/responses
[] [INFO] Generating content stream asynchronously
[] [INFO] endpoint path: /v1beta/models/gemini-1.5-flash:streamGenerateContent
[] [INFO] endpoint path: /v1beta/models/gemini-1.5-flash:streamGenerateContent
[] [INFO] base url: https://generativelanguage.googleapis.com
[] [INFO] base url: https://generativelanguage.googleapis.com
[] [INFO] endpoint path: /v1beta/models/gemini-1.5-flash:generateContent?key=invalid-google-key
[] [INFO] Static generation
[] [INFO] OpenAI Request: {
"model": "gpt-3.5-turbo",
"input": [
{
"role": "user",
"content": "hii my name is harsh?"
}
],
"text": {
"format": {
"type": "text"
}
}
}
[] [INFO] base url: https://api.openai.com
[] [INFO] endpoint path: /v1/responses
[] [INFO] base url: https://generativelanguage.googleapis.com
[] [INFO] endpoint path: /v1beta/models/gemini-1.5-flash:generateContent?key=invalid-2