feat: go-llm-sdk integration (v2.0.0) - #198
Merged
Merged
Conversation
v2.0.0: LLM identity is provider+model via the SDK registry. v1 base_url/api_key remain loud aliases. Sessions keep the nested tool_calls JSON shape so existing ~/.odek/sessions still load. Co-authored-by: Cursor <cursoragent@cursor.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
odek | 1ae3dc9 | Commit Preview URL Branch Preview URL |
Sep 04 2026, 06:47 PM |
Pin go-llm-sdk v0.2.1, persist session provider, fill provider keys from env before leftover Unsetenv, and make GET /api/models the picker catalog. BREAKING CHANGE: GET /api/profiles is removed. Clients must use GET /api/models (configured model + provider ListModels). Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
internal/llmwithgo-llm-sdk. LLM identity is nowprovider+model+providers{}(this is the v2.0.0 break).base_url/api_keyas loud aliases (infer provider, or registerlegacy)../odek.jsoncannot setprovider/providers/llm.session.Message(v1 nestedtool_callson disk). Sub-agents inherit provider identity in the task envelope.reasoning_contentreplay, separate OpenAI system messages). Companion: feat: odek v2 merge-blocker gaps (cache usage, idle timeout, reasoning replay) go-llm-sdk#4Test plan
go test -count=1 ./internal/loop/ ./internal/session/ ./internal/llmclient/ ./internal/config/ ./internal/memory/extended/ .go test -count=1 ./cmd/odek/ -run 'TestGlobalConfigTemplate|TestLocalConfigTemplate|TestConfigView|TestHandleProfiles|TestHandleModelList'go test -count=1 ./cmd/odek/(full CLI package)odek run --provider deepseekand a v1base_url-only~/.odek/config.jsonSee docs/MIGRATION.md.
Made with Cursor