Class QwenProvider
java.lang.Object
hudson.model.AbstractDescribableImpl<BaseAIProvider>
io.jenkins.plugins.explain_error.provider.BaseAIProvider
io.jenkins.plugins.explain_error.provider.QwenProvider
- All Implemented Interfaces:
ExtensionPoint,Describable<BaseAIProvider>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.jenkins.plugins.explain_error.provider.BaseAIProvider
BaseAIProvider.Assistant, BaseAIProvider.BaseProviderDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsFields inherited from class io.jenkins.plugins.explain_error.provider.BaseAIProvider
model, SYSTEM_PROMPT, url, USER_PROMPT_TEMPLATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAssistant(Item item, org.springframework.security.core.Authentication authentication) createAssistant(Item item, org.springframework.security.core.Authentication authentication, Double temperature) createAssistant(Double temperature) Create an assistant with a specific temperature setting.createFixAssistant(Item item, org.springframework.security.core.Authentication authentication) booleanisNotValid(TaskListener listener) booleanisNotValid(TaskListener listener, Item item, org.springframework.security.core.Authentication authentication) Methods inherited from class io.jenkins.plugins.explain_error.provider.BaseAIProvider
buildSystemPrompt, buildUserPrompt, explainError, explainError, explainError, explainError, explainError, getDescriptor, getModel, getProviderName, getUrl, newJenkinsHttpClientBuilder, newLangChainHttpClientBuilder
-
Field Details
-
DEFAULT_URL
- See Also:
-
DEFAULT_MODEL
- See Also:
-
-
Constructor Details
-
QwenProvider
-
-
Method Details
-
getApiKey
-
getCredentialsId
-
createAssistant
- Specified by:
createAssistantin classBaseAIProvider
-
createAssistant
public BaseAIProvider.Assistant createAssistant(@CheckForNull Item item, @CheckForNull org.springframework.security.core.Authentication authentication) - Overrides:
createAssistantin classBaseAIProvider
-
createAssistant
Description copied from class:BaseAIProviderCreate an assistant with a specific temperature setting.- Overrides:
createAssistantin classBaseAIProvider- Parameters:
temperature- the temperature value, or null to let provider defaults apply- Returns:
- the assistant
-
createAssistant
public BaseAIProvider.Assistant createAssistant(@CheckForNull Item item, @CheckForNull org.springframework.security.core.Authentication authentication, @CheckForNull Double temperature) - Overrides:
createAssistantin classBaseAIProvider
-
createFixAssistant
- Specified by:
createFixAssistantin classBaseAIProvider
-
createFixAssistant
public FixAssistant createFixAssistant(@CheckForNull Item item, @CheckForNull org.springframework.security.core.Authentication authentication) - Overrides:
createFixAssistantin classBaseAIProvider
-
isNotValid
- Specified by:
isNotValidin classBaseAIProvider
-
isNotValid
public boolean isNotValid(@CheckForNull TaskListener listener, @CheckForNull Item item, @CheckForNull org.springframework.security.core.Authentication authentication) - Overrides:
isNotValidin classBaseAIProvider
-