Red Hat Developer Lightspeed for Migration Toolkit for Applications is large language model (LLM)与您选择的 LLM 集成。要启用 Red Hat Developer Lightspeed,以便 MTA 访问您的大型语言模型(LLM),您必须在 provider-settings.yaml 中输入 LLM 供应商配置。
models:openshift-example-model:&activeenvironment:CA_BUNDLE:"<Servers CA Bundle path>"provider:"ChatOpenAI"args:model:"my-model"configuration:baseURL:"https://<serving-name>-<data-science-project-name>.apps.konveyor-ai.example.com/v1"
Copy to ClipboardCopied!Toggle word wrapToggle overflow
注意
当您更改 OpenShift AI 中部署的模型时,还必须更改 model 参数和 baseURL 端点。
Copy to ClipboardCopied!Toggle word wrapToggle overflow
对于 Amazon Bedrock:
AmazonBedrock: &active
environment:
## May have to use if no global `~/.aws/credentials`
AWS_ACCESS_KEY_ID: "" # Required if a global ~/.aws/credentials file is not present
AWS_SECRET_ACCESS_KEY: "" # Required if a global ~/.aws/credentials file is not present
AWS_DEFAULT_REGION: "" # Required
provider: ChatBedrock
args:
model: meta.llama3-70b-instruct-v1:0 # Required
AmazonBedrock:&activeenvironment:## May have to use if no global `~/.aws/credentials`AWS_ACCESS_KEY_ID:""# Required if a global ~/.aws/credentials file is not presentAWS_SECRET_ACCESS_KEY:""# Required if a global ~/.aws/credentials file is not presentAWS_DEFAULT_REGION:""# Requiredprovider: ChatBedrock
args:model: meta.llama3-70b-instruct-v1:0# Required
Copy to ClipboardCopied!Toggle word wrapToggle overflow