mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-17 12:28:58 +00:00
docs:Moved AWS tab ahead in the list as per integration telemetry (#28144)
Moving ahead per integration telemetry
This commit is contained in:
parent
364fd5e17f
commit
c48fdbba6a
@ -78,7 +78,7 @@ export default function ChatModelTabs(props) {
|
|||||||
azureParams ??
|
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`;
|
`\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 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";
|
const llmVarName = customVarName ?? "model";
|
||||||
|
|
||||||
@ -119,6 +119,15 @@ export default function ChatModelTabs(props) {
|
|||||||
default: false,
|
default: false,
|
||||||
shouldHide: hideGoogle,
|
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",
|
value: "Cohere",
|
||||||
label: "Cohere",
|
label: "Cohere",
|
||||||
@ -173,15 +182,6 @@ export default function ChatModelTabs(props) {
|
|||||||
default: false,
|
default: false,
|
||||||
shouldHide: hideTogether,
|
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 (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user