Migrate LLM fixtures to keyed PromptKit sources
This commit is contained in:
@@ -28,6 +28,7 @@ type PromptKitLocalBackendConfig struct {
|
||||
type PromptKitClientConfig struct {
|
||||
ProfileDir string
|
||||
ProfileFile string
|
||||
Sources promptkit.ConfigurationSources
|
||||
TransientRetries *int
|
||||
LocalBackend *PromptKitLocalBackendConfig
|
||||
Assets *AssetRegistry
|
||||
@@ -76,7 +77,7 @@ func NewPromptKitClient(cfg PromptKitClientConfig) (*PromptKitClient, error) {
|
||||
ProfileDir: cfg.ProfileDir,
|
||||
ProfileFile: cfg.ProfileFile,
|
||||
LocalBackend: cfg.LocalBackend,
|
||||
}, cfg.Assets)
|
||||
}, cfg.Assets, cfg.Sources)
|
||||
if err != nil {
|
||||
return nil, &promptKitClientConfigurationError{err: err}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user