Skip to content

Commit

Permalink
update default model
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Nov 4, 2024
1 parent 27b5ab6 commit 8131d29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const LANGGRAPH_API_URL =
process.env.LANGGRAPH_API_URL ?? "http://localhost:64129";
process.env.LANGGRAPH_API_URL ?? "http://localhost:53404";
// v2 is tied to the 'open-canvas-prod' deployment.
export const ASSISTANT_ID_COOKIE = "oc_assistant_id_v2";
// export const ASSISTANT_ID_COOKIE = "oc_assistant_id";
Expand Down Expand Up @@ -58,7 +58,7 @@ export const GEMINI_MODELS = [
isNew: false,
},
];
export const DEFAULT_MODEL_NAME: ALL_MODEL_NAMES = "claude-3-5-haiku-20241022";
export const DEFAULT_MODEL_NAME: ALL_MODEL_NAMES = "gpt-4o-mini";
export type OPENAI_MODEL_NAMES = (typeof OPENAI_MODELS)[number]["name"];
export type ANTHROPIC_MODEL_NAMES = (typeof ANTHROPIC_MODELS)[number]["name"];
export type FIREWORKS_MODEL_NAMES = (typeof FIREWORKS_MODELS)[number]["name"];
Expand Down
4 changes: 1 addition & 3 deletions src/hooks/useThread.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,7 @@ export function useThread() {
try {
const client = createClient();
const thread = await client.threads.get(id);
if (!thread.values || !(thread.values as Record<string, any>)?.messages) {
setModelName(DEFAULT_MODEL_NAME);
} else if (thread.metadata && thread.metadata.customModelName) {
if (thread.metadata && thread.metadata.customModelName) {
setModelName(thread.metadata.customModelName as ALL_MODEL_NAMES);
}
return thread;
Expand Down

0 comments on commit 8131d29

Please sign in to comment.