MCPcopy Create free account
hub / github.com/diillson/chatcli / CreateClientWithConfig

Method CreateClientWithConfig

llm/manager/llm_manager.go:72–72  ·  view source on GitHub ↗

CreateClientWithConfig creates an LLM client using caller-provided credentials plus provider-specific configuration. Supports all providers including StackSpot (needs client_id, client_key, realm, agent_id) and Ollama (needs base_url).

(provider, model, apiKey string, providerConfig map[string]string)

Source from the content-addressed store, hash-verified

70 // plus provider-specific configuration. Supports all providers including StackSpot
71 // (needs client_id, client_key, realm, agent_id) and Ollama (needs base_url).
72 CreateClientWithConfig(provider, model, apiKey string, providerConfig map[string]string) (client.LLMClient, error)
73 // ListModelsForProvider lists available models for a provider, either dynamically
74 // from the provider's API (if supported) or from the static catalog.
75 ListModelsForProvider(ctx context.Context, provider string) ([]client.ModelInfo, error)

Callers 1

getClientMethod · 0.65

Implementers 5

LLMManagerImplllm/manager/llm_manager.go
minimalManagercli/skill_model_resolve_integration_te
mockLLMManagercli/agent/workers/dispatcher_test.go
fakeLLMManagercmd/server_test.go
mockLLMManagerserver/handler_test.go

Calls

no outgoing calls

Tested by

no test coverage detected