Skip to content

Tags: akazwz/twilight-ai

Tags

v0.4.0

Toggle v0.4.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat(anthropic): add prompt caching support (memohai#9)

* feat(anthropic): add prompt caching support

* fix(ci): golang lint

v0.3.4

Toggle v0.3.4's commit message
Release v0.3.4

v0.3.3

Toggle v0.3.3's commit message
sdk: remove unused MaxTokens field from Model struct

The field was never read anywhere; actual max-tokens control is handled
at the request level via GenerateParams.MaxTokens.

v0.3.2

Toggle v0.3.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix(anthropic): set default max_tokens when unset (memohai#1)

v0.3.1

Toggle v0.3.1's commit message
fix(sdk): harden step loop cancellation and parallelize tool execution

- Add ctx.Err() checks at step loop entry in both StreamText and
  GenerateText to bail out immediately when the context is cancelled,
  instead of attempting another DoStream/DoGenerate call.
- Add a second ctx.Err() check in StreamText after the inner stream
  consumption loop exits, so a cancelled context skips step result
  processing and tool execution.
- Refactor executeTools into two phases: sequential approval checking
  followed by parallel tool.Execute via goroutines, using indexed
  result slots to avoid races. Single-tool calls skip goroutine
  overhead.

v0.3.0

Toggle v0.3.0's commit message
docs: update MCP

v0.2.0

Toggle v0.2.0's commit message
fix: remove duplicate /v1 prefix from Anthropic ListModels/Test/TestM…

…odel paths

defaultBaseURL already includes /v1, so API paths should not repeat it.
Also fixes pre-existing TestDoGenerate path assertion.

v0.1.0

Toggle v0.1.0's commit message
fix: resolve all golangci-lint issues across codebase

- errcheck: check json.Unmarshal return values
- goconst: extract repeated string literals into constants
- gocritic: pass large structs by pointer, fix rangeValCopy,
  ifElseChain, evalOrder, typeSwitchVar
- prealloc: preallocate slices where possible
- staticcheck: use type switch assignment, struct conversion
- unused: remove unused type