Skip to content

feat(web): add system one client and handler - #1020

Merged
Xe merged 4 commits into
masterfrom
Xe/jev-system-one-api-implement
Oct 6, 2026
Merged

Xe merged 4 commits into
masterfrom
Xe/jev-system-one-api-implement

Conversation

@Xe

@Xe Xe commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add a Go client and HTTP handler for the System One API.
  • Cover Noul, Choice, and Score requests, plus Ollama images, with examples and tests.

Details

The package validates request shapes, supports structured JSON fields and optional bearer authentication, converts Go images into ordered base64 JPEGs within 1280×720 pixels, and delegates handler evaluations to an injected backend.

Test plan

  • Code compiles with go build ./...
  • Code formatted with npm run format (Go files pass go tool goimports -d)
  • Manual testing
  • go test ./web/systemone and go vet ./web/systemone

Add request and response types for all three question primitives, plus an HTTP client and evaluator-backed handler.

Assisted-by: GPT-6 via Codex
Signed-off-by: Xe Iaso <xe@tigrisdata.com>
@github-actions

github-actions Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

The latest Buf updates on your PR. Results from workflow Go / build (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedOct 6, 2026, 6:20 PM

Xe added 3 commits October 6, 2026 14:04
Expose Valid on requests and questions so callers can use the shared validation contract.

Assisted-by: GPT-6 via Codex
Signed-off-by: Xe Iaso <xe@tigrisdata.com>
Pass Ollama image inputs through the client and handler so vision-capable decision models can evaluate them with the state.

Assisted-by: GPT-6 via Codex
Signed-off-by: Xe Iaso <xe@tigrisdata.com>
Accept image.Image values, fit them within 1280x720, and encode them as JPEGs for Ollama requests. Decode incoming wire images for handler evaluators.

Assisted-by: GPT-6 via Codex
Signed-off-by: Xe Iaso <xe@tigrisdata.com>
@Xe
Xe merged commit a4a5f58 into master Oct 6, 2026
8 checks passed
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