MCPcopy Index your code
hub / github.com/Noumena-Network/code / collectModels

Function collectModels

src/services/api/inferenceClient.test.ts:115–121  ·  view source on GitHub ↗
(client: OpenAICompatInferenceClient)

Source from the content-addressed store, hash-verified

113}
114
115async function collectModels(client: OpenAICompatInferenceClient) {
116 const models: Array<Record<string, unknown>> = []
117 for await (const model of client.listModels()) {
118 models.push(model as Record<string, unknown>)
119 }
120 return models
121}
122
123beforeEach(async () => {
124 setStableTestRuntime()

Callers 1

Calls 1

listModelsMethod · 0.65

Tested by

no test coverage detected