8000 Releases · felinics/twilight · GitHub
[go: up one dir, main page]

Skip to content

Releases

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 17 Oct 09:08
0ee7c27

   🚨 Breaking Changes

   🚀 Features

  • agentcore: 增加请求预检与可恢复的 Session 压缩  -  by @Fodesu in #129 (b94cf)

   🐞 Bug Fixes

  • completions: Json_schema 结构化输出按 Chat Completions 规范包装  -  by @sheepbox8646 and Claude Opus 5.5 in #124 (df74a)
    View changes on GitHub

v0.8.1

Choose a tag to compare

@github-actions github-actions released this 13 Oct 13:51
e99d186

Bug Fixes

  • Completions: preserve streamed reasoning_details wire order and opaque encrypted entries (#118).
  • Google: use the correct embedding batch limit and fully paginate generative and embedding model discovery (#120).

Notes

  • The chat-model filtering change from #119 was fully reverted by #121, so it has no net behavior change in this release.

View changes on GitHub

v0.8.0

Choose a tag to compare

@github-actions github-actions released this 13 Oct 07:59
e47c5b3

   🚨 Breaking Changes

  • anthropic: 思考配置支持 display、显式关闭与交错思考 beta 头  -  by @sheepbox8646 and Claude Opus 5.5 in #115 (0d17b)
  • completions: 推理回传字段可配置,sdk.Model 补充模型元数据  -  by @sheepbox8646 and Claude Opus 5.5 in #116 (e47c5)
  • sdk: 移除 ModelType,EmbeddingModel 补充元数据  -  by @sheepbox8646 and Claude Opus 5.5 in #117 (2fb5a)

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub

v0.7.1

Choose a tag to compare

@github-actions github-actions released this 30 Sep 20:38
f68dbee

   🐞 Bug Fixes

  • ark: Read the request ID from the x-request-id header on video errors  -  by @HoneyBBQ (ce8dc)
    View changes on GitHub

v0.7.0

Choose a tag to compare

@github-actions github-actions released this 30 Sep 07:28
d0ae284

   Upgrading from v0.6.0

The module path is now github.com/felinics/twilight. v0.7.0 is the first tag under it, so replace the github.com/memohai/twilight imports and run go get github.com/felinics/twilight@v0.7.0.

The text-generation client layer is removed (#53). Model.Generate and Model.Stream take an sdk.Request and are the only chat entry points. GenerateText, StreamText, MaxSteps, tool execution and approval, and the MCP client are gone; the caller runs tools and loops. ToolArguments, ToolOutput and Request.ProviderOptions hold RFC 8785 canonical JSON (#54), and RawJSONOutput returns an error.

Provider failures are *sdk.APIError: non-2xx responses, error events inside a stream (StatusCode 0), and failed video jobs. Read the cause with sdk.KindOf(err), which returns one of authentication, permission_denied, quota_exhausted, rate_limited, server_error or unknown. The set is open, so a switch on it needs a default branch. Error() has no stable format and no longer starts with api error. Code that matches the error text, such as a regexp on api error 5\d\d to decide whether to retry, stops matching and must move to KindOf. RetryAfter() reads retry-after-ms and Retry-After.

A stream that ends before its terminal event emits an ErrorPart wrapping sdk.ErrStreamIncomplete, followed by a FinishPart with FinishReasonError. It used to end as a success.

Provider.Test returns error: nil when the provider is reachable and accepts the credentials. ProviderTestResult, ProviderStatus and ClassifyProbeStatus are removed. VideoProvider requires Name(), and VideoError has a Kind.

edge.EdgeTTSVoices is replaced by Voices(), which returns a copy.

sdk.WithClientRequestID(ctx, id) sends a caller-chosen request ID to the providers that accept one. Nothing is sent when it is not set.

  • edge:
    • Replace EdgeTTSVoices with Voices(), which returns a copy  -  by @HoneyBBQ (06eb4)
  • provider:
  • sdk:
    • Single-call seam only; typed tool arguments, outputs and provider metadata  -  by @Fodesu in #53 (ce173)
    • The JSON the SDK carries through is RFC 8785 canonical at its entry points  -  by @Fodesu in #54 (cef8f)
    • Report health checks and failed video jobs as errors  -  by @HoneyBBQ (2720a)

   🚀 Features

  • Add request headers and OpenCode Go provider  -  by @akazwz (ed745)
  • opencode-go:
  • provider:
    • Return *sdk.APIError from non-2xx responses  -  by @HoneyBBQ (6e7f3)
    • Return *sdk.APIError from direct HTTP and WebSocket audio paths  -  by @HoneyBBQ (23622)
  • sdk:
    • Export APIError with Kind classification  -  by @HoneyBBQ (a4f89)
    • Send a caller-chosen client request ID to providers that accept one  -  by @HoneyBBQ (138c0)

   🐞 Bug Fixes

  • anthropic:
    • Map the refusal and model_context_window_exceeded stop reasons  -  by @HoneyBBQ (8a59a)
  • ci:
  • completions:
    • Replay reasoning_content on thinking-mode tool calls  -  by @Fodesu in #48 (18a98)
  • errorformat:
    • Classify Google errors by google.api.ErrorReason values only  -  by @HoneyBBQ (a3b29)
    • Read OpenRouter's x-generation-id as the request ID  -  by @HoneyBBQ (27155)
    • Classify Gemini daily quota errors as quota_exhausted  -  by @HoneyBBQ (546c2)
  • headers:
    • Keep sdk free of AWS deps and protect the JSON content type  -  by @akazwz (8fccb)
  • opencode-go:
  • openrouter:
  • provider:
    • Replay invalid tool arguments as {} on string-typed wire fields  -  by @Fodesu in #58 (22d89)
    • Bound the error body NewHTTPError reads; match Copilot test errors by field  -  by @HoneyBBQ (9969f)
    • Leave 501 and 505 unclassified  -  by @HoneyBBQ (7bf57)
    • Read ElevenLabs and MiniMax request IDs from the headers they send on errors  -  by @HoneyBBQ (d267e)
  • sdk:
    • An unidentified reasoning start opens a new block instead of joining the last  -  by @Fodesu in #56 (6487f)
    View changes on GitHub

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 28 Aug 12:57

   🚨 Breaking Changes

    View changes on GitHub

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 15 Aug 08:59
f12e94b

   🚀 Features

   🐞 Bug Fixes

   🏎 Performance

  • provider: Use strings.Builder for streamed tool-arg accumulation  -  by @Fodesu in #32 (14e8a)
    View changes on GitHub

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 04 May 07:32
012d3aa

   🚀 Features

   🐞 Bug Fixes

  • anthropic: Strip data URL prefix and validate media_type for image parts  -  by @sheepbox8646 (3ebcc)
  • openrouter: Use uint32 types to eliminate gosec G115 nolint  -  by @HoneyBBQ (45261)
  • speech: Resolve golangci-lint issues across providers  -  by @HoneyBBQ (e68a1)
  • sse: Increase scanner buffer to handle large base64 payloads  -  by @sheepbox8646 (9e9f7)
  • tests: Resolve SA5011 nil pointer dereference warnings  -  by @HoneyBBQ (2fb1a)
    View changes on GitHub

v0.3.3

Choose a tag to compare

@github-actions github-actions released this 26 Mar 11:45

   🐞 Bug Fixes

    View changes on GitHub

v0.3.2

Choose a tag to compare

@github-actions github-actions released this 21 Mar 06:47
1ada20a

   🐞 Bug Fixes

    View changes on GitHub
0