MCPcopy Create free account
hub / github.com/Hello-Application-XH/HelloGML / convertClaudeToolsToOpenAI

Function convertClaudeToolsToOpenAI

src/adapters.ts:59–68  ·  view source on GitHub ↗
(tools: any[])

Source from the content-addressed store, hash-verified

57}
58
59function convertClaudeToolsToOpenAI(tools: any[]): any[] {
60 return tools.map((tool: any) => ({
61 type: "function",
62 function: {
63 name: tool.name,
64 description: tool.description,
65 parameters: tool.input_schema || tool.parameters || {},
66 },
67 }));
68}
69
70export function convertGLMToClaude(glmResponse: any): any {
71 const message = glmResponse.choices[0].message;

Callers 1

createClaudeCompletionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected