Package org.springframework.ai.model
Class NoopApiKey
java.lang.Object
org.springframework.ai.model.NoopApiKey
- All Implemented Interfaces:
ApiKey
This implementation of ApiKey indicates that no API key should be used, e.g. no HTTP
headers should be set.
- Author:
- Paul Bakker
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NoopApiKey
public NoopApiKey()
-
-
Method Details
-
getValue
Description copied from interface:ApiKey
Returns an api key to use for a making request. Users of this method should NOT cache the returned api key, instead call this method whenever you need an api key. Implementors of this method MUST ensure that the returned key is not expired.
-