Skip to content

Commit 50fa676

Browse files
committed
Progress
1 parent d7950fc commit 50fa676

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

src/api/providers/pearai.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

src/shared/api.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,8 +802,11 @@ export const pearAiDefaultModelId: PearAiModelId = "pearai-model"
802802
export 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,

0 commit comments

Comments
 (0)