{"id":24149,"library":"openapi-llm","title":"openapi-llm","description":"Convert and invoke OpenAPI specifications as LLM tool/function definitions. Current version 0.4.3. Active development.","status":"active","version":"0.4.3","language":"python","source_language":"en","source_url":"https://github.com/vblagoje/openapi-llm","tags":["openapi","llm","function-calling","tool-definitions"],"install":[{"cmd":"pip install openapi-llm","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"OpenAPIToolSpec is exported at package level since v0.4.0.","wrong":"from openapi_llm.core import OpenAPIToolSpec","symbol":"OpenAPIToolSpec","correct":"from openapi_llm import OpenAPIToolSpec"},{"note":"Used for configuration like API keys.","symbol":"Config","correct":"from openapi_llm import Config"}],"quickstart":{"code":"import os\nfrom openapi_llm import OpenAPIToolSpec\nfrom openapi_llm import Config\n\nconfig = Config(api_key=os.environ.get('OPENAI_API_KEY', 'test-key'))\nspec = OpenAPIToolSpec.from_url('https://api.example.com/openapi.json', config=config)\ntools = spec.to_tools()\nprint(tools)","lang":"python","description":"Load an OpenAPI spec from a URL, convert to LLM tool definitions."},"warnings":[{"fix":"Use keyword arguments: OpenAPIToolSpec.from_spec(spec, config=config).","message":"OpenAPIToolSpec.from_spec() method signature changed in v0.4.0; old positional args may break.","severity":"deprecated","affected_versions":">=0.4.0"},{"fix":"Always provide a Config object with api_key or other required credentials.","message":"In v0.4.0, the config parameter became mandatory for authentication.","severity":"breaking","affected_versions":">=0.4.0"},{"fix":"Set the api_key in Config for the relevant security scheme as specified in the OpenAPI spec.","message":"OpenAPI security schemes (e.g., API Key, OAuth) are not automatically handled; you must pass a Config with the correct api_key.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Upgrade to latest version (pip install --upgrade openapi-llm) and use 'from openapi_llm import OpenAPIToolSpec'.","cause":"Old import path or outdated version before v0.4.0","error":"AttributeError: module 'openapi_llm' has no attribute 'OpenAPIToolSpec'"},{"fix":"Upgrade to v0.4.0 or later: pip install --upgrade openapi-llm","cause":"Using old openapi-llm version (<0.4.0) that did not accept config parameter.","error":"TypeError: from_spec() got an unexpected keyword argument 'config'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}