provider:anthropiclabel:en_US:Anthropicdescription:en_US:Anthropic's powerful models, such as Claude 3.zh_Hans:Anthropic 的强大模型,例如 Claude 3。icon_small:en_US:icon_s_en.svgicon_large:en_US:icon_l_en.svgbackground:"#F0F0EB"help:title:en_US:Get your API Key from Anthropiczh_Hans:从 Anthropic 获取 API Keyurl:en_US:https://console.anthropic.com/account/keyssupported_model_types: - llmconfigurate_methods: - predefined-modelprovider_credential_schema:credential_form_schemas: - variable:anthropic_api_keylabel:en_US:API Keytype:secret-inputrequired:trueplaceholder:zh_Hans:在此输入您的 API Keyen_US:Enter your API Key - variable:anthropic_api_urllabel:en_US:API URLtype:text-inputrequired:falseplaceholder:zh_Hans:在此输入您的 API URLen_US:Enter your API URLmodels:llm:predefined: - "models/llm/*.yaml"position:"models/llm/_position.yaml"extra:python:provider_source:provider/anthropic.pymodel_sources: - "models/llm/llm.py"
model_credential_schema:model:# 微调模型名称label:en_US:Model Namezh_Hans:模型名称placeholder:en_US:Enter your model namezh_Hans:输入模型名称credential_form_schemas: - variable:openai_api_keylabel:en_US:API Keytype:secret-inputrequired:trueplaceholder:zh_Hans:在此输入您的 API Keyen_US:Enter your API Key - variable:openai_organizationlabel:zh_Hans:组织 IDen_US:Organizationtype:text-inputrequired:falseplaceholder:zh_Hans:在此输入您的组织 IDen_US:Enter your Organization ID - variable:openai_api_baselabel:zh_Hans:API Baseen_US:API Basetype:text-inputrequired:falseplaceholder:zh_Hans:在此输入您的 API Baseen_US:Enter your API Base
defvalidate_provider_credentials(self,credentials:dict) ->None:""" Validate provider credentials You can choose any validate_credentials method of model type or implement validate method by yourself, such as: get model list api if validate failed, raise exception :param credentials: provider credentials, credentials form defined in `provider_credential_schema`. """