MCPcopy
hub / github.com/simstudioai/sim / chatResponse

Function chatResponse

apps/sim/providers/vllm/index.test.ts:92–97  ·  view source on GitHub ↗
(content: string | null, toolCalls?: ToolCall[])

Source from the content-addressed store, hash-verified

90}
91
92function chatResponse(content: string | null, toolCalls?: ToolCall[]) {
93 return {
94 choices: [{ message: { content, tool_calls: toolCalls } }],
95 usage: { prompt_tokens: 10, completion_tokens: 5, total_tokens: 15 },
96 }
97}
98
99function makeTool(id: string): ProviderToolConfig {
100 return {

Callers 1

index.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected