Add OpenAI-compatible model client

This commit is contained in:
2026-07-28 04:29:17 +00:00
parent 62b26fb29e
commit 7e94ab133b
7 changed files with 1739 additions and 8 deletions

View File

@@ -21,10 +21,11 @@ contributor workflow and validation.
| `internal/prompt` | Renders prompt messages from Go templates with artifact, variable, session, and cache-control data. | [Go-template renderer](../../internal/prompt/go_renderer.go) |
| `internal/artifact` | Resolves ordinary inline and unrestricted caller-selected file references into copied artifacts with metadata and hashes. | [Internal sources and validation](sources.md) |
| `internal/validate` | Validates basic, JSON, and JSON Schema output using operating-system filesystem or `fs.FS` schema sources. | [Internal sources and validation](sources.md) |
| `internal/llm` | Defines the internal generation boundary and implements outbound OpenAI-compatible chat requests, response decoding, authentication, and deadline handling. | [Internal model client](llm.md) |
These packages provide the internal model, source, and rendering foundation.
Model clients, orchestration, and a usable public engine are not implemented in
Promptkit yet.
These packages provide the internal model, source, rendering, validation, and
model-client foundation. Orchestration and a usable public engine are not
implemented in Promptkit yet.
## Maintenance