Skip to content

Fix #249: Fix IndexError when model string has no separator#5

Open
gtx20060124-bot wants to merge 1 commit into
mainfrom
fix/index-error-model-split
Open

Fix #249: Fix IndexError when model string has no separator#5
gtx20060124-bot wants to merge 1 commit into
mainfrom
fix/index-error-model-split

Conversation

@gtx20060124-bot

Copy link
Copy Markdown
Owner

Fixes OpenGradient#249

Added _model_id() helper that safely handles model strings without / separator. Fixed both completion() and chat() to use it instead of raw split().

Files changed

  • src/opengradient/client/llm.py

Acceptance checklist

  • Fix implemented as described
  • Follows existing codebase conventions
  • No AI training leakage markers
  • No build artifacts committed

@gtx20060124-bot

Copy link
Copy Markdown
Owner Author

0x6e154f0e2c6190c18c27691537cf12a5f47d0558

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IndexError when model string has no / separator

1 participant