Skip to content

Simplify models URL construction for broader endpoint support#83

Closed
Samge0 wants to merge 1 commit into
ATH-MaaS:mainfrom
Samge0:dev-patch-2
Closed

Simplify models URL construction for broader endpoint support#83
Samge0 wants to merge 1 commit into
ATH-MaaS:mainfrom
Samge0:dev-patch-2

Conversation

@Samge0

@Samge0 Samge0 commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Remove /v1 suffix check to support custom base URLs (e.g., GLM's /api/coding/paas/v4).

Change

# Before: Conditional logic based on /v1 suffix
# After: models_url = f"{base_url}/models"

@yx9966

yx9966 commented May 6, 2026

Copy link
Copy Markdown
Collaborator

This PR removes the /v1 auto-detection logic in llm_util.py, which would break configurations where users provide a base URL without the /v1 suffix. It also conflicts with PR #121 (Gemini support) which modifies the same function. Closing to avoid regressions.

@yx9966 yx9966 closed this May 6, 2026
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.

2 participants