MCPcopy Create free account
hub / github.com/ephraimduncan/opencode-cursor / buildOpenAIModelList

Function buildOpenAIModelList

src/proxy.ts:338–350  ·  view source on GitHub ↗
(models: ReadonlyArray<{ id: string; name: string }>)

Source from the content-addressed store, hash-verified

336let proxyModels: Array<{ id: string; name: string }> = [];
337
338function buildOpenAIModelList(models: ReadonlyArray<{ id: string; name: string }>): Array<{
339 id: string;
340 object: "model";
341 created: number;
342 owned_by: string;
343}> {
344 return models.map((model) => ({
345 id: model.id,
346 object: "model",
347 created: 0,
348 owned_by: "cursor",
349 }));
350}
351
352export function getProxyPort(): number | undefined {
353 return proxyPort;

Callers 1

fetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected