Additional changes for VertexAI
This commit is contained in:
parent
48018990be
commit
2e58dab30a
2 changed files with 5 additions and 0 deletions
|
@ -18,3 +18,7 @@ REMOTE_BACKEND_ADDRESS=111.111.111.111:0000
|
||||||
# leave commented to have open access to all endpoints
|
# leave commented to have open access to all endpoints
|
||||||
# Secret key to "secure" backend
|
# Secret key to "secure" backend
|
||||||
# SUPER_SECRET_KEY=THISISASUPERSECRETKEYSERIOUSLY
|
# SUPER_SECRET_KEY=THISISASUPERSECRETKEYSERIOUSLY
|
||||||
|
|
||||||
|
# Uncomment and edit to configure a specific service account key file to use to
|
||||||
|
# auth with VertexAI when running (backend) full Perplexica stack locally
|
||||||
|
# GOOGLE_APPLICATION_CREDENTIALS=/absolute/path/to/gcp-service-account-key-file.json
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import { ChatOpenAI, OpenAIEmbeddings } from '@langchain/openai';
|
import { ChatOpenAI, OpenAIEmbeddings } from '@langchain/openai';
|
||||||
import { ChatOllama } from '@langchain/community/chat_models/ollama';
|
import { ChatOllama } from '@langchain/community/chat_models/ollama';
|
||||||
|
import { VertexAI } from "@langchain/google-vertexai";
|
||||||
import { OllamaEmbeddings } from '@langchain/community/embeddings/ollama';
|
import { OllamaEmbeddings } from '@langchain/community/embeddings/ollama';
|
||||||
import { hasGCPCredentials } from '../auth';
|
import { hasGCPCredentials } from '../auth';
|
||||||
import {
|
import {
|
||||||
|
|
Loading…
Add table
Reference in a new issue