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

Method getModel

src/api/providers/xai.ts:41–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 }
40
41 override getModel() {
42 const id =
43 this.options.apiModelId && this.options.apiModelId in xaiModels
44 ? (this.options.apiModelId as XAIModelId)
45 : xaiDefaultModelId
46
47 const info = xaiModels[id]
48 const params = getModelParams({
49 format: "openai",
50 modelId: id,
51 model: info,
52 settings: this.options,
53 defaultTemperature: XAI_DEFAULT_TEMPERATURE,
54 })
55 return { id, info, ...params }
56 }
57
58 /**
59 * Convert tools from OpenAI Chat Completions format to Responses API format.

Callers 2

createMessageMethod · 0.95
completePromptMethod · 0.95

Calls 1

getModelParamsFunction · 0.90

Tested by

no test coverage detected