MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / buildModelParams

Function buildModelParams

packages/baseai/src/dev/llms/call-xai.ts:42–67  ·  view source on GitHub ↗
(
	pipe: Pipe,
	stream: boolean,
	messages: Message[]
)

Source from the content-addressed store, hash-verified

40}
41
42function buildModelParams(
43 pipe: Pipe,
44 stream: boolean,
45 messages: Message[]
46): ModelParams {
47 const model = pipe.model.split(':')[1];
48 const {
49 top_p,
50 max_tokens,
51 temperature,
52 presence_penalty,
53 frequency_penalty,
54 stop
55 } = pipe;
56 return {
57 messages,
58 stream,
59 model,
60 top_p,
61 max_tokens,
62 temperature,
63 presence_penalty,
64 frequency_penalty,
65 stop
66 };
67}

Callers 1

callXAIFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected