MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / setModel

Method setModel

src/core/agent.ts:219–229  ·  view source on GitHub ↗
(modelId: string)

Source from the content-addressed store, hash-verified

217 }
218
219 setModel(modelId: string): void {
220 this.options.modelId = modelId
221 this.client = createLLMClient({
222 token: this.options.token,
223 modelId,
224 taskId: this.taskId,
225 organizationId: this.options.organizationId,
226 repo: detectRepo(this.options.cwd),
227 baseUrl: this.options.baseUrl,
228 })
229 }
230
231 get modelId(): string {
232 return this.options.modelId

Callers 1

AppFunction · 0.80

Calls 2

createLLMClientFunction · 0.85
detectRepoFunction · 0.85

Tested by

no test coverage detected