mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-03 11:47:49 +00:00
docs: use vertexai in chat model tabs (#20352)
This commit is contained in:
parent
9d302c1b57
commit
a889cd14f3
@ -31,7 +31,7 @@ os.environ["${apiKeyName}"] = getpass.getpass()`;
|
|||||||
* @property {boolean} [hideAnthropic] - Whether or not to hide Anthropic chat model.
|
* @property {boolean} [hideAnthropic] - Whether or not to hide Anthropic chat model.
|
||||||
* @property {boolean} [hideFireworks] - Whether or not to hide Fireworks chat model.
|
* @property {boolean} [hideFireworks] - Whether or not to hide Fireworks chat model.
|
||||||
* @property {boolean} [hideMistral] - Whether or not to hide Mistral chat model.
|
* @property {boolean} [hideMistral] - Whether or not to hide Mistral chat model.
|
||||||
* @property {boolean} [hideGoogle] - Whether or not to hide Google chat model.
|
* @property {boolean} [hideGoogle] - Whether or not to hide Google VertexAI chat model.
|
||||||
* @property {boolean} [hideTogether] - Whether or not to hide Together chat model.
|
* @property {boolean} [hideTogether] - Whether or not to hide Together chat model.
|
||||||
* @property {string} [customVarName] - Custom variable name for the model. Defaults to `model`.
|
* @property {string} [customVarName] - Custom variable name for the model. Defaults to `model`.
|
||||||
*/
|
*/
|
||||||
@ -111,9 +111,9 @@ export default function ChatModelTabs(props) {
|
|||||||
{
|
{
|
||||||
value: "Google",
|
value: "Google",
|
||||||
label: "Google",
|
label: "Google",
|
||||||
text: `from langchain_google_genai import ChatGoogleGenerativeAI\n\n${llmVarName} = ChatGoogleGenerativeAI(${googleParamsOrDefault})`,
|
text: `from langchain_google_vertexai import ChatVertexAI\n\n${llmVarName} = ChatVertexAI(${googleParamsOrDefault})`,
|
||||||
apiKeyName: "GOOGLE_API_KEY",
|
apiKeyName: "GOOGLE_API_KEY",
|
||||||
packageName: "langchain-google-genai",
|
packageName: "langchain-google-vertexai",
|
||||||
default: false,
|
default: false,
|
||||||
shouldHide: hideGoogle,
|
shouldHide: hideGoogle,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user