Ask a question to get started
Enter to send•Shift+Enter new line
OpenAPI spec to OpenAI function JSON Schema.
Convert a valid OpenAPI spec to the JSON Schema format expected for OpenAI functions.
openapi_spec_to_openai_fn( spec: OpenAPISpec, ) -> tuple[list[dict[str, Any]], Callable]
spec
OpenAPISpec
OpenAPI spec to convert.