File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,26 @@ public static partial class Metadata
1313 {
1414 return model switch
1515 {
16+ CreateChatCompletionRequestModel . O1Preview or
17+ CreateChatCompletionRequestModel . O1Preview20240912 => new ChatModelMetadata
18+ {
19+ Id = model . ToValueString ( ) ,
20+ PricePerInputTokenInUsd = 15.00 * UsdPerMillionTokens ,
21+ PricePerOutputTokenInUsd = 60.00 * UsdPerMillionTokens ,
22+ ContextLength = 128_000 ,
23+ OutputLength = 16_000 ,
24+ } ,
25+
26+ CreateChatCompletionRequestModel . O1Mini or
27+ CreateChatCompletionRequestModel . O1Mini20240912 => new ChatModelMetadata
28+ {
29+ Id = model . ToValueString ( ) ,
30+ PricePerInputTokenInUsd = 3.00 * UsdPerMillionTokens ,
31+ PricePerOutputTokenInUsd = 12.00 * UsdPerMillionTokens ,
32+ ContextLength = 128_000 ,
33+ OutputLength = 16_000 ,
34+ } ,
35+
1636 CreateChatCompletionRequestModel . Gpt4o or
1737 CreateChatCompletionRequestModel . Gpt4o20240806 => new ChatModelMetadata
1838 {
You can’t perform that action at this time.
0 commit comments