opencode-cursor-agent/internal/logic/chat
王性驊 9e2a10b614 feat: complete implementation of all endpoints and config
- Update etc/chat-api.yaml with all configuration options (no env vars)
- Add ToBridgeConfig method to Config for YAML-based config
- Implement complete AnthropicMessages streaming with SSE
- Add Tools field to AnthropicRequest
- Update ServiceContext with model tracking
- Add all CRUD handlers for health, models, chat, anthropic

Features restored:
- Health check endpoint
- Models list with caching
- ChatCompletions streaming (OpenAI format)
- AnthropicMessages streaming (Anthropic format)
- Tool calls support for both formats
- Thinking/reasoning content support
- Rate limit detection and handling
- Account pool integration
- Request/response logging
- Model resolution with strict mode
- Workspace and prompt truncation handling
2026-04-03 23:17:04 +08:00
..
anthropic_messages_logic.go feat: complete implementation of all endpoints and config 2026-04-03 23:17:04 +08:00
chat_completions_logic.go feat(logic): implement complete ChatCompletions streaming with SSE 2026-04-03 23:04:28 +08:00
health_logic.go feat(logic): implement logic layer for health, models, and chat completions 2026-04-03 23:00:18 +08:00
models_logic.go feat(logic): implement logic layer for health, models, and chat completions 2026-04-03 23:00:18 +08:00