oracle / oracle/oci-python-sdk
GenAI Model capabilities are mismatched SDK vs CLI
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 474
- Forks
- 321
- Avg merge
- 23m
- Merged PRs (30d)
- 4
Description
Per the code snippet here,
capability, must be one of ['TEXT_TO_TEXT', 'IMAGE_TEXT_TO_TEXT', 'EMBEDDING', 'RERANK'] for the sdk's list_models request.
However the result of list models does not adhere to the same constraints in the cli (v3.71.0):
oci generative-ai model-collection list-models
returns various models with capabilities such as "CHAT" or "TEXT_EMBEDDING" which are from the previous version of the sdk (2.150.3 -> 2.163.1).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/oci/generative_ai/generative_ai_client.py around line 3037 and compare the SDK list_models capability constraints with the output of oci generative-ai model-collection list-models in CLI v3.71.0. Review the SDK version changes from 2.150.3 to 2.163.1 and identify which capability names are expected. Done means the SDK and CLI consistently represent the supported model capabilities.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100