LibreChat/api/app/clients
Danny Avila ea1dd59ef4
refactor(api): Central Logging 📜 (#1348)
* WIP: initial logging changes
add several transports in ~/config/winston
omit messages in logs, truncate long strings
add short blurb in dotenv for debug logging
GoogleClient: using logger
OpenAIClient: using logger, handleOpenAIErrors
Adding typedef for payload message
bumped winston and using winston-daily-rotate-file
moved config for server paths to ~/config dir
Added `DEBUG_LOGGING=true` to .env.example

* WIP: Refactor logging statements in code

* WIP: Refactor logging statements and import configurations

* WIP: Refactor logging statements and import configurations

* refactor: broadcast Redis initialization message with `info` not `debug`

* refactor: complete Refactor logging statements and import configurations

* chore: delete unused tools

* fix: circular dependencies due to accessing logger

* refactor(handleText): handle booleans and write tests

* refactor: redact sensitive values, better formatting

* chore: improve log formatting, avoid passing strings to 2nd arg

* fix(ci): fix jest tests due to logger changes

* refactor(getAvailablePluginsController): cache plugins as they are static and avoids async addOpenAPISpecs call every time

* chore: update docs

* chore: update docs

* chore: create separate meiliSync logger, clean up logs to avoid being unnecessarily verbose

* chore: spread objects where they are commonly logged to allow string truncation

* chore: improve error log formatting
2023-12-14 07:49:27 -05:00
..
agents refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00
callbacks refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00
chains refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00
document feat: ConversationSummaryBufferMemory (#973) 2023-09-26 21:02:28 -04:00
llm refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00
memory refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00
output_parsers refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00
prompts feat(Google): Support all Text/Chat Models, Response streaming, PaLM -> Google 🤖 (#1316) 2023-12-10 14:54:13 -05:00
specs fix(PluginsClient/getFunctionModelName): returns input if agent model is function capable (#1246) 2023-11-30 12:50:52 -05:00
tools refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00
AnthropicClient.js refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00
BaseClient.js refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00
ChatGPTClient.js fix: Resolve Token Credit Balance Issues for Instruct Models 🛠️ (#1232) 2023-11-26 18:12:27 -05:00
GoogleClient.js refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00
index.js ci(backend-review.yml): add linter step to the backend review workflow (#625) 2023-07-14 09:36:49 -04:00
OpenAIClient.js refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00
PluginsClient.js refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00
TextStream.js refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00