ballerina-platform / ballerina-library

The Ballerina Library
https://ballerina.io/learn/api-docs/ballerina/
Apache License 2.0
137 stars 58 forks source link

Merge Ballerina OpenAI connectors into a single connector #6836

Open NipunaRanasinghe opened 1 month ago

NipunaRanasinghe commented 1 month ago

Description: Combine OpenAI Connectors into a Single Connector

Description:
We currently have separate generated connectors for various OpenAI sub-functionalities(e.g. openai.chat, openai.audio, etc.) Since our strategy is to generate one connector per API contract, and OpenAI provides a single API contract encompassing all these services, the plan will be to combine them into a single openai connector. This change aims to simplify the user experience and align with our connector generation strategy. The new connector will provide comprehensive access to all OpenAI functionalities under one unified interface.

Tasks:

  1. Deprecate existing separate connectors (openai.chat, openai.audio, etc.).
  2. Generate the new openai connector based on the unified API contract.
  3. Update documentation and examples to reflect the new unified connector.
  4. Ensure backward compatibility where possible and communicate any breaking changes.
  5. Test the new connector thoroughly to ensure it covers all previously available functionalities.

Describe your problem(s)

Describe your solution(s)

Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):