Skip to content

Commit

Permalink
o1Mini
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinceBaghel258025 committed Sep 13, 2024
1 parent 6881e60 commit 5c0fb77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/api/chatmodel/[chatid]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ export async function POST(
chatType === "ella" ? ellaPrompt : systemPrompt,
);

const model = OPEN_AI_MODELS.gpt4Turbo;
// const model = OPEN_AI_MODELS.gpt4Turbo;
const model = OPEN_AI_MODELS.o1Mini;

const { stream, handlers } = LangChainStream({
onCompletion: async (fullResponse: string) => {
Expand Down
2 changes: 2 additions & 0 deletions src/utils/apiHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export const OPEN_AI_MODELS = {
gptTurbo: "gpt-3.5-turbo" as const,
gptTurbo16k: "gpt-3.5-turbo-16k" as const,
gpt4Turbo: "gpt-4-turbo" as const,
o1Mini: "01-mini" as const
//TODO: gpt-40-mini
};

const TOKEN_SIZE = {
Expand Down

0 comments on commit 5c0fb77

Please sign in to comment.