StringExtensions Class
Provides extension methods for string-related model manipulations.
Namespace: GenerativeAIAssembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
public static class StringExtensions
- Inheritance
- Object StringExtensions
MaskApiKey |
Masks the API key present in the query string of a URL.
|
ToCachedContentId |
Converts a content name or path string into a standardized cached content identifier.
|
ToCorpusId |
Converts a content name or path string into a standardized corpora content identifier.
|
ToFileId |
Converts a file name or path string into a standardized file identifier.
|
ToModelId |
Converts a model name string into a standardized model identifier.
|
ToTunedModelId |
Converts a given model name into a formatted tuned model identifier.
|