mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-21 19:15:00 +00:00
Dockerized Langchain / PY example (#175)
This commit is contained in:
parent
e59bad89e7
commit
07c3aa1869
10 changed files with 137 additions and 10 deletions
|
@ -4,7 +4,7 @@ import { Document } from "langchain/document";
|
|||
import { initializeAgentExecutorWithOptions } from "langchain/agents";
|
||||
import {Calculator} from "langchain/tools/calculator";
|
||||
|
||||
const pathToLocalAi = process.env['OPENAI_API_HOST'] || 'http://api:8080/v1';
|
||||
const pathToLocalAi = process.env['OPENAI_API_BASE'] || 'http://api:8080/v1';
|
||||
const fakeApiKey = process.env['OPENAI_API_KEY'] || '-';
|
||||
const modelName = process.env['MODEL_NAME'] || 'gpt-3.5-turbo';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue