Skip to content

Commit

Permalink
bugfix: set embedding model name
Browse files Browse the repository at this point in the history
  • Loading branch information
cdxker committed Apr 9, 2024
1 parent bb0e35d commit 087cbf9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dashboard/src/components/NewDatasetModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ export const NewDatasetModal = (props: NewDatasetModalProps) => {
return {
...prev,
EMBEDDING_SIZE: embeddingSize,
EMBEDDING_MODEL_NAME:
selectedModel?.id ?? "text-embedding-3-small",
EMBEDDING_BASE_URL:
selectedModel?.url ??
"https://api.openai.com/v1",
Expand Down
6 changes: 6 additions & 0 deletions dashboard/src/types/apiTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,12 @@ export const availableEmbeddingModels = [
url: "https://api.openai.com/v1",
dimension: 1536,
},
{
id: "text-embedding-3-large",
name: "text-embedding-3-large (hosted by OpenAI)",
url: "https://api.openai.com/v1",
dimension: 3072,
},
];

export interface EventDTO {
Expand Down

0 comments on commit 087cbf9

Please sign in to comment.