MCPcopy Index your code
hub / github.com/anomalyco/models.dev / formatToml

Function formatToml

packages/core/script/generate-databricks.ts:158–166  ·  view source on GitHub ↗
(resolution: Resolution, endpointName: string)

Source from the content-addressed store, hash-verified

156}
157
158function formatToml(resolution: Resolution, endpointName: string): string {
159 if (resolution?.type === "base_model") {
160 return `base_model = "${resolution.from}"\n`;
161 }
162 if (resolution?.type === "inline") {
163 return resolution.content;
164 }
165 return `# TODO: fill in details for ${endpointName}\nname = "${endpointName}"\n`;
166}
167
168// ---------------------------------------------------------------------------
169// Main

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected