Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 refactor: Improve Agent Context & Minor Fixes #5349

Merged
merged 12 commits into from
Jan 17, 2025

Conversation

danny-avila
Copy link
Owner

Summary

This set of changes improves several core functionalities across the application:

  • Optimized token counting and usage tracking mechanisms for Agents
  • Improved context management for AI agents by truncating tool outputs as token count reaches a threshold of maximum context available
  • Fixed the Client MCP connection structure, closes [Bug]: Spring AI MCP Server incompatible with LibreChat MCP Client #5347
  • Enhanced model safety settings for Gemini 2.0
  • Cleaned up frontend file handling and allow SVG uploads for Code Interpreter API
  • Enhanced error handling and logging across the application

Change Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • My changes do not introduce new warnings
  • Local unit tests pass with my changes

@danny-avila danny-avila changed the title refactor: Improve Agent Context, & Minor Fixes refactor: Improve Agent Context & Minor Fixes Jan 17, 2025
@danny-avila danny-avila changed the title refactor: Improve Agent Context & Minor Fixes 🔧 refactor: Improve Agent Context & Minor Fixes Jan 17, 2025
@danny-avila danny-avila merged commit b35a8b7 into main Jan 17, 2025
4 checks passed
@danny-avila danny-avila deleted the refactor/agent-context branch January 17, 2025 17:55
owengo pushed a commit to openwengo/LibreChat that referenced this pull request Jan 21, 2025
* refactor: Improve Context for Agents

* 🔧 fix: Safeguard against undefined properties in OpenAIClient response handling

* refactor: log error before re-throwing for original stack trace

* refactor: remove toolResource state from useFileHandling, allow svg files

* refactor: prevent verbose logs from axios errors when using actions

* refactor: add silent method recordTokenUsage in AgentClient

* refactor: streamline token count assignment in BaseClient

* refactor: enhance safety settings handling for Gemini 2.0 model

* fix: capabilities structure in MCPConnection

* refactor: simplify civic integrity threshold handling in GoogleClient and llm

* refactor: update token count retrieval method in BaseClient tests

* ci: fix test for svg
lpirola pushed a commit to lpirola/LibreChat that referenced this pull request Jan 22, 2025
* refactor: Improve Context for Agents

* 🔧 fix: Safeguard against undefined properties in OpenAIClient response handling

* refactor: log error before re-throwing for original stack trace

* refactor: remove toolResource state from useFileHandling, allow svg files

* refactor: prevent verbose logs from axios errors when using actions

* refactor: add silent method recordTokenUsage in AgentClient

* refactor: streamline token count assignment in BaseClient

* refactor: enhance safety settings handling for Gemini 2.0 model

* fix: capabilities structure in MCPConnection

* refactor: simplify civic integrity threshold handling in GoogleClient and llm

* refactor: update token count retrieval method in BaseClient tests

* ci: fix test for svg
justinmdickey pushed a commit to e-gineering/LibreChat that referenced this pull request Jan 30, 2025
* refactor: Improve Context for Agents

* 🔧 fix: Safeguard against undefined properties in OpenAIClient response handling

* refactor: log error before re-throwing for original stack trace

* refactor: remove toolResource state from useFileHandling, allow svg files

* refactor: prevent verbose logs from axios errors when using actions

* refactor: add silent method recordTokenUsage in AgentClient

* refactor: streamline token count assignment in BaseClient

* refactor: enhance safety settings handling for Gemini 2.0 model

* fix: capabilities structure in MCPConnection

* refactor: simplify civic integrity threshold handling in GoogleClient and llm

* refactor: update token count retrieval method in BaseClient tests

* ci: fix test for svg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Spring AI MCP Server incompatible with LibreChat MCP Client
1 participant