- options.go: new WithChatCompletions(resolver) and
WithChatCompletionsPath(path); api.New(...) now auto-mounts at
/v1/chat/completions when a resolver is configured (previously the
resolver could be attached but never mounted, which would have
panicked Gin)
- chat_completions.go: fixed missing net/http import, dropped
ModelType during discovery, Retry-After header set after c.JSON
silently lost, swapped OpenAI error type/code fields, swapped
validate call site, redundant nil check, builder length read before
nil-receiver check
- openapi.go: effective*Path helpers surface an explicit path even
when the corresponding Enabled flag is false so CLI callers still
get x-*-path extensions; /swagger always in authentik public paths
- chat_completions_test.go: Good/Bad/Ugly coverage for new options,
validation, no-resolver behaviour
- openapi_test.go: fix stale assertion for CacheEnabled-gated X-Cache
- go.mod: bump dappco.re/go/core/cli to v0.5.2
- Removed local go-io / go-log stubs — replace points to outer
modules for single source of truth
- Migrated forge.lthn.ai/core/cli imports to dappco.re/go/core/cli
across cmd/api/*.go + docs
Co-Authored-By: Virgil <virgil@lethean.io>
Treat enabled built-in transports as having their default paths when callers omit an explicit override. This keeps manual SpecBuilder usage aligned with the engine defaults and prevents Swagger, GraphQL, WebSocket, and SSE metadata from disappearing from generated documents.\n\nCo-Authored-By: Virgil <virgil@lethean.io>
Preserve the Swagger UI mount path in generated OpenAPI output and expose it through the spec and sdk CLI builders.\n\nCo-Authored-By: Virgil <virgil@lethean.io>
Adds GraphQL Playground coverage to the generated OpenAPI spec when the GraphQL playground option is enabled, and wires the engine metadata through so runtime docs match the mounted route.
Co-Authored-By: Virgil <virgil@lethean.io>
Prepare route descriptions once per group before building paths and tags so iterator-backed DescribeIter implementations are consumed safely and deterministically.
Adds a regression test covering a one-shot iterator-backed group.
Co-Authored-By: Virgil <virgil@lethean.io>
Normalise server metadata so trailing-slash variants deduplicate to a single entry.
Adds a regression test covering both absolute and relative server URLs.
Co-Authored-By: Virgil <virgil@lethean.io>