Agent: skipNextCompletion; Better cache keys; XL category; Fix ModelProfileService concurrency;
This commit is contained in:
@@ -5,6 +5,7 @@ public enum ModelCategory {
|
||||
SMALL("profile.model.s", "S"),
|
||||
MEDIUM("profile.model.m", "M"),
|
||||
LARGE("profile.model.l", "L"),
|
||||
XLARGE("profile.model.xl", "XL"),
|
||||
HOT("profile.model.hot", "HOT"),
|
||||
COLD("profile.model.cold", "COLD");
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ public class ModelProfileService {
|
||||
String apiKey = null;
|
||||
synchronized (this.environment) {
|
||||
if (this.environment instanceof ConfigurableEnvironment configurableEnvironment) {
|
||||
configurableEnvironment.getPropertySources().addLast(resource);
|
||||
configurableEnvironment.getPropertySources().addFirst(resource);
|
||||
}
|
||||
apiKey = Optional.ofNullable(this.environment.getProperty("apiKey"))
|
||||
.map(Object::toString)
|
||||
|
||||
Reference in New Issue
Block a user