docs:Moved AWS tab ahead in the list as per integration telemetry (#28144)

Moving ahead per integration telemetry
This commit is contained in:
Piyush Jain 2024-11-15 14:24:27 -08:00 committed by GitHub
parent 364fd5e17f
commit c48fdbba6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -78,7 +78,7 @@ export default function ChatModelTabs(props) {
azureParams ??
`\n azure_endpoint=os.environ["AZURE_OPENAI_ENDPOINT"],\n azure_deployment=os.environ["AZURE_OPENAI_DEPLOYMENT_NAME"],\n openai_api_version=os.environ["AZURE_OPENAI_API_VERSION"],\n`;
const nvidiaParamsOrDefault = nvidiaParams ?? `model="meta/llama3-70b-instruct"`
const awsBedrockParamsOrDefault = awsBedrockParams ?? `model_id="anthropic.claude-3-5-sonnet-20240620-v1:0"`;
const awsBedrockParamsOrDefault = awsBedrockParams ?? `model="anthropic.claude-3-5-sonnet-20240620-v1:0",\n beta_use_converse_api=True`;
const llmVarName = customVarName ?? "model";
@ -119,6 +119,15 @@ export default function ChatModelTabs(props) {
default: false,
shouldHide: hideGoogle,
},
{
value: "AWS",
label: "AWS",
text: `from langchain_aws import ChatBedrock\n\n${llmVarName} = ChatBedrock(${awsBedrockParamsOrDefault})`,
apiKeyText: "# Ensure your AWS credentials are configured",
packageName: "langchain-aws",
default: false,
shouldHide: hideAWS,
},
{
value: "Cohere",
label: "Cohere",
@ -173,15 +182,6 @@ export default function ChatModelTabs(props) {
default: false,
shouldHide: hideTogether,
},
{
value: "AWS",
label: "AWS",
text: `from langchain_aws import ChatBedrock\n\n${llmVarName} = ChatBedrock(${awsBedrockParamsOrDefault})`,
apiKeyText: "# Ensure your AWS credentials are configured",
packageName: "langchain-aws",
default: false,
shouldHide: hideAWS,
},
];
return (