Skip to content

Commit b5beda7

Browse files
grokifyclaude
andcommitted
refactor(llm): update for new omnillm and observability APIs
- Update imports: opik and phoenix moved to separate repos - omniobserve/llmops/opik → go-opik/llmops - omniobserve/llmops/phoenix → go-phoenix/llmops - Update omnillm adapter to use new Providers slice API Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 61f51a1 commit b5beda7

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

llm/adapters/omnillm_adapter.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,14 @@ func NewOmniLLMAdapterWithConfig(cfg OmniLLMAdapterConfig) (*OmniLLMAdapter, err
4242
return nil, fmt.Errorf("%s API key is required", cfg.ProviderName)
4343
}
4444

45-
// Create OmniLLM config
45+
// Create OmniLLM config with new Providers slice API
4646
config := omnillm.ClientConfig{
47-
Provider: omnillm.ProviderName(cfg.ProviderName),
48-
APIKey: cfg.APIKey,
47+
Providers: []omnillm.ProviderConfig{
48+
{
49+
Provider: omnillm.ProviderName(cfg.ProviderName),
50+
APIKey: cfg.APIKey,
51+
},
52+
},
4953
ObservabilityHook: cfg.ObservabilityHook,
5054
}
5155

llm/factory.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import (
1616
"github.com/agentplexus/agentkit/llm/adapters"
1717

1818
// Import observability providers (driver registration via init())
19+
_ "github.com/agentplexus/go-opik/llmops"
20+
_ "github.com/agentplexus/go-phoenix/llmops"
1921
_ "github.com/agentplexus/omniobserve/llmops/langfuse"
20-
_ "github.com/agentplexus/omniobserve/llmops/opik"
21-
_ "github.com/agentplexus/omniobserve/llmops/phoenix"
2222
)
2323

2424
// ModelFactory creates LLM models based on configuration.

0 commit comments

Comments
 (0)