context.call
.
However, if you need to call the OpenAI endpoint for text generation (/v1/chat/completions
), you can leverage the type-safe method context.api.openai.call
method:
context.api.openai.call
is not yet available in
workflow-py. You can use context.call
instead to work with OpenAI. See our
Roadmap for feature parity plans and
Changelog for updates.baseURL
parameter: