mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-08-05 02:45:28 +00:00
fix(chat): validate subscription endpoint URLs
This commit is contained in:
parent
cb3c4888c4
commit
9bd11cc642
1 changed files with 4 additions and 4 deletions
|
|
@ -2048,10 +2048,10 @@ function initializeEventListeners() {
|
|||
return u.includes('11434') || u.includes('ollama');
|
||||
};
|
||||
|
||||
const isChatGptSubscriptionEndpoint = url => {
|
||||
const u = String(url || '').toLowerCase();
|
||||
return u.includes('chatgpt.com') || u.includes('chatgpt-subscription');
|
||||
};
|
||||
const isChatGptSubscriptionEndpoint = url => (
|
||||
String(url || '').trim().toLowerCase() === 'chatgpt-subscription'
|
||||
|| chatRenderer.isSubscriptionEndpoint(url)
|
||||
);
|
||||
|
||||
const isOSeriesReasoningModel = model => {
|
||||
const m = String(model || '').toLowerCase();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue