Skip to content

Tools calling support with OpenAILanguageModel #40

@airy10

Description

@airy10

OpenAILanguageModel is missing the loop to properly send tools responses back to OpenAI

I've added some basic implementation in my fork at https://github.com/airy10/AnyLanguageModel

I'm not familiar with OpenAI API so it might not be correct and it's probably not complete, but I could test it with some of my MCP server (https://github.com/airy10/GedcomMCP) and my FoundationModels MCPToolBridge which let FoundationModels discover and bridge tools from MCP servers (https://github.com/airy10/AppleFoundationMCPTool )
It seems to work fine with this configuration and using some OpenRouter models

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions