(tools: any[])
| 57 | } |
| 58 | |
| 59 | function 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 | |
| 70 | export function convertGLMToClaude(glmResponse: any): any { |
| 71 | const message = glmResponse.choices[0].message; |
no outgoing calls
no test coverage detected