Sponsored by Deepsite.site

项目介绍

Created By
xiaoxiaoningdesuia year ago
A lightweight large language model input-output tracker—launch with a single command, integrate effortlessly.
Content

项目介绍

大语言模型开发过程中发现不同应用与模型交互的输入输出异常重要,但是很多框架客户端并没有完全记录交互过程,所以基于 traefik 开发了一款大语言模型 IO 跟踪器。

当前支持模型

  1. ollama 部署的大模型
  2. deepseek
  3. openaisdk可以对接的大模型(理论上deepseek输入输出符合openai规范,所以应该可以接入,但是没经过测试)

特性与优化

  1. 屏蔽了 input 中 tools 列表,由于每次交互都会带上 tools 列表,通常可能会几百个工具,所以将 tools 列表进行了屏蔽
  2. 支持流式与非流式响应,流式响应不会阻塞进程,流式记录会在输出完毕后,拼接所有 chunk 的信息,结果展示与非流式无异
  3. 支持 mcp/function_call/chat 模式
  4. 输入与输出内容对一些特殊字符进行了转义,易于人类阅读

项目编译

go build -o llm-tracker.exe .\cmd\traefik\

启动方式

./llm-tracker.exe --configFile=config.toml

这个路径要有3个文件,二进制exe,config.toml和rules.toml

如何接入

在对接大模型的工作流 / 客户端 / 代码中,将访问大模型的 ip 和端口改为 127.0.0.1:1234 即可。

项目依赖

本项目主要依赖的项目为:traefik

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
DeepChatYour AI Partner on Desktop
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
ChatWiseThe second fastest AI chatbot™
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
WindsurfThe new purpose-built IDE to harness magic
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Playwright McpPlaywright MCP server
CursorThe AI Code Editor
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Amap Maps高德地图官方 MCP Server
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Tavily Mcp
Serper MCP ServerA Serper MCP Server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.