MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getModel

Method getModel

src/api/providers/openai-codex.ts:1120–1136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1118 }
1119
1120 override getModel() {
1121 const modelId = this.options.apiModelId
1122
1123 const id = modelId && modelId in openAiCodexModels ? (modelId as OpenAiCodexModelId) : openAiCodexDefaultModelId
1124
1125 const info: ModelInfo = openAiCodexModels[id]
1126
1127 const params = getModelParams({
1128 format: "openai",
1129 modelId: id,
1130 model: info,
1131 settings: this.options,
1132 defaultTemperature: 0,
1133 })
1134
1135 return { id, info, ...params }
1136 }
1137
1138 getEncryptedContent(): { encrypted_content: string; id?: string } | undefined {
1139 if (!this.lastResponseOutput) return undefined

Callers 2

createMessageMethod · 0.95
completePromptMethod · 0.95

Calls 1

getModelParamsFunction · 0.90

Tested by

no test coverage detected