Commit Graph

5 Commits

Author SHA1 Message Date
ThomasOrtiz3647 c6529c8a7d Add different effort levels for models
Add model variants for OpenAI and Anthropic APIs to support varying levels of reasoning effort, allowing clients to select effort by model name.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dcd090ca-935a-42ae-8db4-503e1bbe165a
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 9c490fc7-dd25-43e2-b6d5-ada682953c75
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/40608c50-a053-47e8-aa03-1bdcc1a2698b/dcd090ca-935a-42ae-8db4-503e1bbe165a/ZBSB1hW
Replit-Helium-Checkpoint-Created: true
2026-04-26 14:52:31 +00:00
ThomasOrtiz3647 1f7cc185b6 Add reasoning effort support for Anthropic models
Update the API proxy to handle Anthropic's extended thinking feature, mapping OpenAI's `reasoning_effort` parameter to Anthropic's `thinking.budget_tokens` and streaming thinking content as `reasoning_content`.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dcd090ca-935a-42ae-8db4-503e1bbe165a
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 0c459609-81b9-48ba-a245-b04cd4ce70fc
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/40608c50-a053-47e8-aa03-1bdcc1a2698b/dcd090ca-935a-42ae-8db4-503e1bbe165a/ZBSB1hW
Replit-Helium-Checkpoint-Created: true
2026-04-26 14:49:32 +00:00
ThomasOrtiz3647 7a7f13f623 Improve streaming by correctly detecting client disconnects
Externalize OpenAI and Anthropic SDKs and fix streaming logic by using `res.on("close")` instead of `req.on("close")` to accurately detect client disconnects and prevent premature loop termination.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dcd090ca-935a-42ae-8db4-503e1bbe165a
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: e74b2f37-ad8b-469c-8d06-fdc381ac4a39
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/40608c50-a053-47e8-aa03-1bdcc1a2698b/dcd090ca-935a-42ae-8db4-503e1bbe165a/ZBSB1hW
Replit-Helium-Checkpoint-Created: true
2026-04-26 14:34:43 +00:00
ThomasOrtiz3647 aebedfc52e Implement an OpenAI-compatible API proxy and user interface
Adds an API server with proxy routes for OpenAI and Anthropic clients, along with a frontend portal to interact with the API.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dcd090ca-935a-42ae-8db4-503e1bbe165a
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 61b72c06-3c4d-47af-a97e-9d527892d9c5
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/40608c50-a053-47e8-aa03-1bdcc1a2698b/dcd090ca-935a-42ae-8db4-503e1bbe165a/ZBSB1hW
Replit-Helium-Checkpoint-Created: true
2026-04-26 14:18:14 +00:00
agent 8337c4b212 Initial commit 2026-04-18 02:00:09 +00:00