diff --git a/src/app/dashboard/layout.tsx b/src/app/dashboard/layout.tsx index 3bbc717..1203d23 100644 --- a/src/app/dashboard/layout.tsx +++ b/src/app/dashboard/layout.tsx @@ -100,7 +100,7 @@ export default function LoggedInLayout({ ); } -const SearchButton = (props: React.ComponentProps) => { +export const SearchButton = (props: React.ComponentProps) => { return ( + {isSignedIn ? ( + <> + + + Search + + + + ) : null}
diff --git a/src/utils/apiHelper.ts b/src/utils/apiHelper.ts index 7fcda61..302c428 100644 --- a/src/utils/apiHelper.ts +++ b/src/utils/apiHelper.ts @@ -413,7 +413,7 @@ export const summarizeChat = async (chat: ChatEntry[]): Promise => { name: "SummarizeChat", run_type: "llm", inputs: { - model: "HuggingFaceH4/zephyr-7b-beta", + model: "llama3.1-8b", messages: msgs as ChatCompletionMessageParam[], top_p: 0.7, max_tokens: 512, @@ -423,12 +423,12 @@ export const summarizeChat = async (chat: ChatEntry[]): Promise => { const parentRun = new RunTree(parentRunConfig); const openai = new OpenAI({ - baseURL: env.ANYSCALE_API_BASE, - apiKey: env.ANYSCALE_API_KEY, + baseURL: env.LITELLM_BASE_URL, + apiKey: env.LITELLM_API_KEY, }); const stream: OpenAI.Chat.ChatCompletion = await openai.chat.completions.create({ - model: "HuggingFaceH4/zephyr-7b-beta", + model: "llama3.1-8b", messages: [ { role: "user", content: msg }, ] as ChatCompletionMessageParam[],