mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-28 02:53:30 +00:00
ui
# What does this PR do? ## Test Plan # What does this PR do? ## Test Plan # What does this PR do? ## Test Plan
This commit is contained in:
parent
114946ae88
commit
a4d84f7805
22 changed files with 821 additions and 38 deletions
15
llama_stack/ui/lib/server-config.ts
Normal file
15
llama_stack/ui/lib/server-config.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
* Server-side configuration for the Llama Stack UI
|
||||
* This file should only be imported in server components
|
||||
*/
|
||||
|
||||
// Get backend URL from environment variable or default to localhost for development
|
||||
export const BACKEND_URL =
|
||||
process.env.LLAMA_STACK_BACKEND_URL ||
|
||||
`http://localhost:${process.env.LLAMA_STACK_PORT || 8321}`;
|
||||
|
||||
export const serverConfig = {
|
||||
backendUrl: BACKEND_URL,
|
||||
} as const;
|
||||
|
||||
export default serverConfig;
|
Loading…
Add table
Add a link
Reference in a new issue