File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -108,6 +108,11 @@ export class PearAiHandler {
108108 id : baseModel . id ,
109109 info : {
110110 ...baseModel . info ,
111+ // Inherit all capabilities from the underlying model
112+ supportsImages : baseModel . info . supportsImages ,
113+ supportsComputerUse : baseModel . info . supportsComputerUse ,
114+ supportsPromptCache : baseModel . info . supportsPromptCache ,
115+ // Apply PearAI's price markup
111116 inputPrice : ( baseModel . info . inputPrice || 0 ) * 1.03 ,
112117 outputPrice : ( baseModel . info . outputPrice || 0 ) * 1.03 ,
113118 cacheWritesPrice : baseModel . info . cacheWritesPrice ? baseModel . info . cacheWritesPrice * 1.03 : undefined ,
Original file line number Diff line number Diff line change @@ -802,8 +802,11 @@ export const pearAiDefaultModelId: PearAiModelId = "pearai-model"
802802export const pearAiDefaultModelInfo : ModelInfo = {
803803 maxTokens : 8192 ,
804804 contextWindow : 64000 ,
805- supportsImages : false ,
805+ // Default values for required fields, but actual values will be inherited from underlying model
806806 supportsPromptCache : true ,
807+ supportsImages : false ,
808+ supportsComputerUse : false ,
809+ // Base pricing
807810 inputPrice : 0.014 ,
808811 outputPrice : 0.28 ,
809812 cacheWritesPrice : 0.27 ,
@@ -816,8 +819,11 @@ export const pearAiModels = {
816819 "pearai-model" : {
817820 maxTokens : 8192 ,
818821 contextWindow : 64000 ,
819- supportsImages : false ,
822+ // Default values for required fields, but actual values will be inherited from underlying model
820823 supportsPromptCache : true ,
824+ supportsImages : false ,
825+ supportsComputerUse : false ,
826+ // Base pricing
821827 inputPrice : 0.014 ,
822828 outputPrice : 0.28 ,
823829 cacheWritesPrice : 0.27 ,
You can’t perform that action at this time.
0 commit comments