Expose provider-neutral PromptKit inspection
This commit is contained in:
@@ -39,6 +39,7 @@ type PromptKitProfileInspection struct {
|
||||
Model string
|
||||
CredentialEnvironment string
|
||||
CredentialRequired bool
|
||||
EffectiveModelParams PromptKitEffectiveModelParams `json:"effective_model_params"`
|
||||
}
|
||||
|
||||
type PromptKitProfileInspectionError struct {
|
||||
@@ -110,6 +111,7 @@ func (i *PromptKitProfileInspector) InspectProfile(ctx context.Context, profileI
|
||||
Model: strings.TrimSpace(inspection.EffectiveModelParams.Model),
|
||||
CredentialEnvironment: strings.TrimSpace(inspection.EffectiveModelParams.APIKeyEnv),
|
||||
CredentialRequired: inspection.APIKeyRequired,
|
||||
EffectiveModelParams: promptKitEffectiveModelParams(inspection.EffectiveModelParams),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user