PromptBuilder::createProviderModelPreferenceKey( string $providerId, string $modelId ): string

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only by core. It is listed here for completeness.

Creates a preference key for a provider/model combination.

Parameters

$providerIdstringrequired
The provider identifier.
$modelIdstringrequired
The model identifier.

Return

string The generated preference key.

Source

private function createProviderModelPreferenceKey(string $providerId, string $modelId): string
{
    return 'providerModel::' . $providerId . '::' . $modelId;
}

Changelog

VersionDescription
0.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.