Add the o1 model

This commit is contained in:
Matt Rubens
2024-12-20 09:45:30 -05:00
parent 537514de44
commit 0aa5f1fb85
2 changed files with 9 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ export class OpenAiNativeHandler implements ApiHandler {
async *createMessage(systemPrompt: string, messages: Anthropic.Messages.MessageParam[]): ApiStream {
switch (this.getModel().id) {
case "o1":
case "o1-preview":
case "o1-mini": {
// o1 doesnt support streaming, non-1 temp, or system prompt