Skip to content

feat(api): multimodal inputs, tool endpoints, generation cancellation - #148

Merged
mattjhawken merged 4 commits into
mainfrom
feature/api-upgrade-2
Nov 20, 2026
Merged

mattjhawken merged 4 commits into
mainfrom
feature/api-upgrade-2

Conversation

@mattjhawken

@mattjhawken mattjhawken commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Summary

Extend the API to better support remote-local AI workflows for web applications such as tensorlink.io, adding multimodal inputs, tool endpoints, and generation cancellation.

Features

  • Responses API: Extend /v1/responses to support multimodal inputs, including images and file attachments.
  • Tool Endpoints: foundation for structured queries, web search, utilities, and future agentic capabilities.
  • Private-Mode Tools: Add /v1/tools with web search, RAG, and safe file fetching for vector search, restricted to private mode.
  • Generation cancellation
  • Clean emoji transfer over MPC->API

- web_search toggle ("off" | "auto" | "always"; true == "always") on
  /v1/chat/completions and /v1/responses
- API-process loop: short decision turn -> tool call -> normal answer
  turn, streamed as requested
- tools/agents.py (loop), tools/websearch.py (SearXNG/Brave provider,
  cache, rate limit), tools/base.py (shared tool types)
- Split GenerationMixin._dispatch_text into _assert_model_ready and a
  raising _generate_turn for agent loops
- Add CORS middleware (configured origins + localhost dev servers)
- web_search toggle ("off" | "auto" | "always"; true == "always") on
  /v1/chat/completions and /v1/responses
- API-process loop: short decision turn -> tool call -> normal answer
  turn, streamed as requested
- tools/agents.py (loop), tools/websearch.py (SearXNG/Brave provider,
  cache, rate limit), tools/base.py (shared tool types)
- Split GenerationMixin._dispatch_text into _assert_model_ready and a
  raising _generate_turn for agent loops
- Add CORS middleware (configured origins + localhost dev servers)
@mattjhawken mattjhawken changed the title Feature/api upgrade 2 feat(api): multimodal inputs, tool endpoints, generation cancellation Nov 4, 2026
@mattjhawken
mattjhawken merged commit ca03540 into main Nov 20, 2026
8 checks passed
@mattjhawken
mattjhawken deleted the feature/api-upgrade-2 branch November 20, 2026 14:28
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.

1 participant