openDocument(document, updatePresentingDocument)}
className="inline-flex items-center cursor-pointer transition-all duration-200 ease-in-out"
>
diff --git a/web/src/lib/hooks.ts b/web/src/lib/hooks.ts
index 6c7592ea1b6..c9d91d619c4 100644
--- a/web/src/lib/hooks.ts
+++ b/web/src/lib/hooks.ts
@@ -299,6 +299,7 @@ const MODEL_DISPLAY_NAMES: { [key: string]: string } = {
// OpenAI models
"o1-mini": "O1 Mini",
"o1-preview": "O1 Preview",
+ "o1-2024-12-17": "O1",
"gpt-4": "GPT 4",
"gpt-4o": "GPT 4o",
"gpt-4o-2024-08-06": "GPT 4o (Structured Outputs)",
@@ -318,6 +319,21 @@ const MODEL_DISPLAY_NAMES: { [key: string]: string } = {
"gpt-3.5-turbo-16k-0613": "GPT 3.5 Turbo 16k (June 2023)",
"gpt-3.5-turbo-0301": "GPT 3.5 Turbo (March 2023)",
+ // Amazon models
+ "amazon.nova-micro@v1": "Amazon Nova Micro",
+ "amazon.nova-lite@v1": "Amazon Nova Lite",
+ "amazon.nova-pro@v1": "Amazon Nova Pro",
+
+ // Meta models
+ "llama-3.2-90b-vision-instruct": "Llama 3.2 90B",
+ "llama-3.2-11b-vision-instruct": "Llama 3.2 11B",
+ "llama-3.3-70b-instruct": "Llama 3.3 70B",
+
+ // Microsoft models
+ "phi-3.5-mini-instruct": "Phi 3.5 Mini",
+ "phi-3.5-moe-instruct": "Phi 3.5 MoE",
+ "phi-3.5-vision-instruct": "Phi 3.5 Vision",
+
// Anthropic models
"claude-3-opus-20240229": "Claude 3 Opus",
"claude-3-sonnet-20240229": "Claude 3 Sonnet",
@@ -329,6 +345,9 @@ const MODEL_DISPLAY_NAMES: { [key: string]: string } = {
"claude-3-5-sonnet-20241022": "Claude 3.5 Sonnet (New)",
"claude-3-5-sonnet-v2@20241022": "Claude 3.5 Sonnet (New)",
"claude-3.5-sonnet-v2@20241022": "Claude 3.5 Sonnet (New)",
+ "claude-3-5-haiku-20241022": "Claude 3.5 Haiku",
+ "claude-3-5-haiku@20241022": "Claude 3.5 Haiku",
+ "claude-3.5-haiku@20241022": "Claude 3.5 Haiku",
// Google Models
"gemini-1.5-pro": "Gemini 1.5 Pro",
@@ -337,6 +356,11 @@ const MODEL_DISPLAY_NAMES: { [key: string]: string } = {
"gemini-1.5-flash-001": "Gemini 1.5 Flash",
"gemini-1.5-pro-002": "Gemini 1.5 Pro (v2)",
"gemini-1.5-flash-002": "Gemini 1.5 Flash (v2)",
+ "gemini-2.0-flash-exp": "Gemini 2.0 Flash (Experimental)",
+
+ // Mistral Models
+ "mistral-large-2411": "Mistral Large 24.11",
+ "mistral-large@2411": "Mistral Large 24.11",
// Bedrock models
"meta.llama3-1-70b-instruct-v1:0": "Llama 3.1 70B",
diff --git a/web/src/lib/llm/utils.ts b/web/src/lib/llm/utils.ts
index b200ba39170..8e2ece1e89f 100644
--- a/web/src/lib/llm/utils.ts
+++ b/web/src/lib/llm/utils.ts
@@ -74,6 +74,8 @@ const MODEL_NAMES_SUPPORTING_IMAGE_INPUT = [
"claude-3-opus-20240229",
"claude-3-sonnet-20240229",
"claude-3-haiku-20240307",
+ // custom claude names
+ "claude-3.5-sonnet-v2@20241022",
// claude names with AWS Bedrock Suffix
"claude-3-opus-20240229-v1:0",
"claude-3-sonnet-20240229-v1:0",
@@ -93,6 +95,13 @@ const MODEL_NAMES_SUPPORTING_IMAGE_INPUT = [
"gemini-1.5-flash-001",
"gemini-1.5-pro-002",
"gemini-1.5-flash-002",
+ "gemini-2.0-flash-exp",
+ // amazon models
+ "amazon.nova-lite@v1",
+ "amazon.nova-pro@v1",
+ // meta models
+ "llama-3.2-90b-vision-instruct",
+ "llama-3.2-11b-vision-instruct"
];
export function checkLLMSupportsImageInput(model: string) {
diff --git a/web/src/lib/search/utils.ts b/web/src/lib/search/utils.ts
index b6b1c5675e3..1d428c0cbac 100644
--- a/web/src/lib/search/utils.ts
+++ b/web/src/lib/search/utils.ts
@@ -1,5 +1,10 @@
-import { Tag } from "../types";
-import { Filters, SourceMetadata } from "./interfaces";
+import { Tag, ValidSources } from "../types";
+import {
+ Filters,
+ LoadedOnyxDocument,
+ OnyxDocument,
+ SourceMetadata,
+} from "./interfaces";
import { DateRangePickerValue } from "@/app/ee/admin/performance/DateRangeSelector";
export const buildFilters = (
@@ -22,3 +27,16 @@ export const buildFilters = (
export function endsWithLetterOrNumber(str: string) {
return /[a-zA-Z0-9]$/.test(str);
}
+
+// If we have a link, open it in a new tab (including if it's a file)
+// If above fails and we have a file, update the presenting document
+export const openDocument = (
+ document: OnyxDocument,
+ updatePresentingDocument?: (document: OnyxDocument) => void
+) => {
+ if (document.link) {
+ window.open(document.link, "_blank");
+ } else if (document.source_type === ValidSources.File) {
+ updatePresentingDocument?.(document);
+ }
+};