fix: remove openai dep

# What does this PR do?


## Test Plan
This commit is contained in:
Eric Huang 2025-06-02 14:38:26 -07:00
parent 31a3ae60f4
commit 17e9b14ccf
3 changed files with 7 additions and 60 deletions

View file

@ -1,12 +1,5 @@
import LlamaStackClient from "llama-stack-client";
import OpenAI from "openai";
export const client =
process.env.NEXT_PUBLIC_USE_OPENAI_CLIENT === "true" // useful for testing
? new OpenAI({
apiKey: process.env.NEXT_PUBLIC_OPENAI_API_KEY,
dangerouslyAllowBrowser: true,
})
: new LlamaStackClient({
baseURL: process.env.NEXT_PUBLIC_LLAMA_STACK_BASE_URL,
});
export const client = new LlamaStackClient({
baseURL: process.env.NEXT_PUBLIC_LLAMA_STACK_BASE_URL,
});