No description
Find a file
Snider fbb58486c4 feat(api): WithChatCompletions option + bug fixes in chat_completions
- 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>
2026-04-14 14:34:51 +01:00
.core feat(api): merge go-api + php-api into polyglot repo 2026-03-14 10:03:29 +00:00
cmd/api feat(api): WithChatCompletions option + bug fixes in chat_completions 2026-04-14 14:34:51 +01:00
docs feat(api): WithChatCompletions option + bug fixes in chat_completions 2026-04-14 14:34:51 +01:00
pkg/provider refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
src/php fix(pr#2): address CodeRabbit round 2 review findings 2026-04-07 09:11:05 +01:00
.gitattributes feat(api): merge go-api + php-api into polyglot repo 2026-03-14 10:03:29 +00:00
.gitignore chore: add .core/ and .idea/ to .gitignore 2026-03-15 10:17:49 +00:00
api.go feat(api): WithChatCompletions option + bug fixes in chat_completions 2026-04-14 14:34:51 +01:00
api_test.go fix(api): return engine groups by copy 2026-04-01 21:16:10 +00:00
authentik.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
authentik_integration_test.go chore: migrate to dappco.re vanity import path 2026-03-21 23:50:37 +00:00
authentik_test.go fix(auth): exempt swagger ui path in authentik middleware 2026-04-02 06:29:34 +00:00
authz_test.go chore: migrate to dappco.re vanity import path 2026-03-21 23:50:37 +00:00
bridge.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
bridge_test.go fix(api): trim tool bridge tags 2026-04-02 00:31:38 +00:00
brotli.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
brotli_test.go chore: migrate to dappco.re vanity import path 2026-03-21 23:50:37 +00:00
cache.go fix(pr#2): address CodeRabbit round 4 — newCacheStore fail-closed for unbounded cache 2026-04-07 11:32:28 +01:00
cache_config.go feat(api): expose cache config snapshot 2026-04-02 09:23:02 +00:00
cache_test.go docs(api): align cache docs with explicit limits 2026-04-02 08:36:59 +00:00
chat_completions.go feat(api): WithChatCompletions option + bug fixes in chat_completions 2026-04-14 14:34:51 +01:00
chat_completions_test.go feat(api): WithChatCompletions option + bug fixes in chat_completions 2026-04-14 14:34:51 +01:00
CLAUDE.md feat(api): WithChatCompletions option + bug fixes in chat_completions 2026-04-14 14:34:51 +01:00
client.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
client_test.go fix(api): correct OpenAPI iterator examples 2026-04-03 04:50:54 +00:00
codegen.go fix(pr#2): address CodeRabbit major/critical review findings 2026-04-07 08:38:41 +01:00
codegen_test.go fix(api): harden SDK generator inputs 2026-04-02 13:43:07 +00:00
composer.json feat(api): merge go-api + php-api into polyglot repo 2026-03-14 10:03:29 +00:00
export.go fix(pr#2): address CodeRabbit major/critical review findings 2026-04-07 08:38:41 +01:00
export_test.go fix(cmd/api): normalise spec export formats 2026-04-02 08:12:47 +00:00
expvar_test.go chore: migrate to dappco.re vanity import path 2026-03-21 23:50:37 +00:00
go.mod feat(api): WithChatCompletions option + bug fixes in chat_completions 2026-04-14 14:34:51 +01:00
go.sum feat(api): WithChatCompletions option + bug fixes in chat_completions 2026-04-14 14:34:51 +01:00
graphql.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
graphql_config_test.go fix(api): surface GraphQL playground metadata 2026-04-03 04:38:22 +00:00
graphql_test.go feat(graphql): normalise custom mount paths 2026-04-01 18:08:27 +00:00
group.go docs(api): add AX usage examples 2026-04-02 07:51:21 +00:00
group_test.go chore: migrate to dappco.re vanity import path 2026-03-21 23:50:37 +00:00
gzip_test.go chore: migrate to dappco.re vanity import path 2026-03-21 23:50:37 +00:00
httpsign_test.go chore: migrate to dappco.re vanity import path 2026-03-21 23:50:37 +00:00
i18n.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
i18n_test.go feat(api): add i18n config snapshot 2026-04-02 12:25:38 +00:00
LICENCE feat(api): merge go-api + php-api into polyglot repo 2026-03-14 10:03:29 +00:00
location_test.go chore: migrate to dappco.re vanity import path 2026-03-21 23:50:37 +00:00
middleware.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
middleware_test.go fix(response): attach meta to all json responses 2026-04-02 03:38:34 +00:00
modernization_test.go fix(api): surface GraphQL playground metadata 2026-04-03 04:38:22 +00:00
norace_test.go feat(api): merge go-api + php-api into polyglot repo 2026-03-14 10:03:29 +00:00
openapi.go feat(api): WithChatCompletions option + bug fixes in chat_completions 2026-04-14 14:34:51 +01:00
openapi_test.go feat(api): WithChatCompletions option + bug fixes in chat_completions 2026-04-14 14:34:51 +01:00
options.go feat(api): WithChatCompletions option + bug fixes in chat_completions 2026-04-14 14:34:51 +01:00
pprof_test.go chore: migrate to dappco.re vanity import path 2026-03-21 23:50:37 +00:00
race_test.go feat(api): merge go-api + php-api into polyglot repo 2026-03-14 10:03:29 +00:00
ratelimit.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
ratelimit_test.go fix(api): scope rate limiting by key 2026-04-01 18:22:17 +00:00
response.go docs(api): add AX usage examples 2026-04-02 07:51:21 +00:00
response_meta.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
response_test.go chore: migrate to dappco.re vanity import path 2026-03-21 23:50:37 +00:00
runtime_config.go feat(api): include graphql in runtime snapshots 2026-04-02 13:58:56 +00:00
secure_test.go chore: migrate to dappco.re vanity import path 2026-03-21 23:50:37 +00:00
servers.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
sessions_test.go chore: migrate to dappco.re vanity import path 2026-03-21 23:50:37 +00:00
slog_test.go chore: migrate to dappco.re vanity import path 2026-03-21 23:50:37 +00:00
spec_builder_helper.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
spec_builder_helper_internal_test.go refactor(api): normalise config snapshots 2026-04-02 12:38:54 +00:00
spec_builder_helper_test.go fix(api): surface GraphQL playground metadata 2026-04-03 04:38:22 +00:00
spec_registry.go refactor(api): centralise spec group iterator 2026-04-02 07:57:58 +00:00
spec_registry_test.go refactor(api): centralise spec group iterator 2026-04-02 07:57:58 +00:00
sse.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
sse_test.go fix(api): preserve streaming response passthrough 2026-04-02 06:04:06 +00:00
static_test.go chore: migrate to dappco.re vanity import path 2026-03-21 23:50:37 +00:00
sunset.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
sunset_test.go fix(api): preserve sunset response headers 2026-04-01 23:33:52 +00:00
swagger.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
swagger_internal_test.go fix(api): snapshot swagger groups 2026-04-02 00:24:54 +00:00
swagger_test.go fix(api): redirect swagger base path 2026-04-02 07:44:55 +00:00
timeout_test.go fix(api): disable non-positive timeouts 2026-04-01 13:12:51 +00:00
tracing.go fix(api): add tracing AX examples 2026-04-02 14:29:59 +00:00
tracing_test.go chore: migrate to dappco.re vanity import path 2026-03-21 23:50:37 +00:00
transport.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
websocket.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:00 +01:00
websocket_test.go fix(api): preserve streaming response passthrough 2026-04-02 06:04:06 +00:00