oracle / oracle/oci-python-sdk

GenAI Model capabilities are mismatched SDK vs CLI

Open
#809 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Generative AI
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.