danny-avila / LibreChat

Enhanced ChatGPT Clone: Features Anthropic, AWS, OpenAI, Assistants API, Azure, Groq, o1, GPT-4o, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. Actively in public development.
https://librechat.ai/
MIT License
19.16k stars 3.19k forks source link

[Bug]: Issue with the model used by the agents. #4474

Closed Passerby1011 closed 3 weeks ago

Passerby1011 commented 4 weeks ago

What happened?

I chose GPT-4o, but LibreChat actually uses GPT-4o-mini.

From the backend of my API management, I see that LibreChat is actually calling GPT-4o-mini.

Steps to Reproduce

Normal use of agent conversation

What browsers are you seeing the problem on?

Chrome

Relevant log output

2024-10-21T03:06:03.816Z debug: [BaseClient] Loading history:
{
  conversationId: "fd1ce9ca-05be-4fbc-a0bb-93d71a28e266",
  parentMessageId: "00000000-0000-0000-0000-000000000000",
}
2024-10-21T03:06:03.822Z debug: [BaseClient] Context Count (1/2)
{
  remainingContextTokens: 127492,
  maxContextTokens: 127500,
}
2024-10-21T03:06:03.823Z debug: [BaseClient] Context Count (2/2)
{
  remainingContextTokens: 127492,
  maxContextTokens: 127500,
}
2024-10-21T03:06:03.823Z debug: [BaseClient] tokenCountMap:
2024-10-21T03:06:03.823Z debug: [BaseClient]
{
  promptTokens: 8,
  remainingContextTokens: 127492,
  payloadSize: 1,
  maxContextTokens: 127500,
}
2024-10-21T03:06:03.824Z debug: [api/server/controllers/agents/client.js] chatCompletion
{
  baseURL: undefined,
  // 1 payload(s)
  payload: [{"role":"user","content":"你好"}],
}
2024-10-21T03:06:03.855Z debug: [saveConvo] api/app/clients/BaseClient.js - saveMessageToDatabase #saveConvo
2024-10-21T03:06:05.013Z debug: [spendTokens] conversationId: fd1ce9ca-05be-4fbc-a0bb-93d71a28e266 | Context: message | Token usage:
{
  promptTokens: 502,
  completionTokens: 15,
}
2024-10-21T03:06:05.039Z debug: [saveConvo] api/app/clients/BaseClient.js - saveMessageToDatabase #saveConvo
2024-10-21T03:06:05.044Z debug: [spendTokens] No transactions incurred against balance
2024-10-21T03:06:05.065Z debug: [AgentController] Request closed

Screenshots

image image

Code of Conduct