MCPcopy Create free account
hub / github.com/RomanHotsiy/commitgpt / getPromptOptions

Function getPromptOptions

config.ts:34–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34export async function getPromptOptions(): Promise<{
35 model: string;
36 temperature: number;
37 maxTokens: number;
38}> {
39 const model = getConfig<string>("model");
40 const temperature = getConfig<number>("temperature");
41 const maxTokens = getConfig<number>("maxTokens");
42
43 return {
44 model,
45 temperature,
46 maxTokens,
47 };
48}

Callers 1

getAnswerMethod · 0.85

Calls 1

getConfigFunction · 0.85

Tested by

no test coverage detected