fix: remove openai dep (#2337)

# What does this PR do?
1. remove openai dep
2. temporarily update llama-stack-client to stainless sync'd branch as
the responses/inputitems API wasn't included in the last push. This will
automatically be updated to the next version in the release.


## Test Plan
npm run dev
go to any responses details page
This commit is contained in:
ehhuang 2025-06-02 15:15:12 -07:00 committed by GitHub
parent 76dcf47320
commit cac7d404a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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,
});