File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export class OpenAiNativeHandler implements ApiHandler {
2424
2525 async * createMessage ( systemPrompt : string , messages : Anthropic . Messages . MessageParam [ ] ) : ApiStream {
2626 switch ( this . getModel ( ) . id ) {
27+ case "o1" :
2728 case "o1-preview" :
2829 case "o1-mini" : {
2930 // o1 doesnt support streaming, non-1 temp, or system prompt
Original file line number Diff line number Diff line change @@ -481,6 +481,14 @@ export type OpenAiNativeModelId = keyof typeof openAiNativeModels
481481export const openAiNativeDefaultModelId : OpenAiNativeModelId = "gpt-4o"
482482export const openAiNativeModels = {
483483 // don't support tool use yet
484+ "o1" : {
485+ maxTokens : 100_000 ,
486+ contextWindow : 200_000 ,
487+ supportsImages : true ,
488+ supportsPromptCache : false ,
489+ inputPrice : 15 ,
490+ outputPrice : 60 ,
491+ } ,
484492 "o1-preview" : {
485493 maxTokens : 32_768 ,
486494 contextWindow : 128_000 ,
You can’t perform that action at this time.
0 commit comments