Skip to content

Commit

Permalink
fix(llm.gblib): Talk to data local db use fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Dec 12, 2024
1 parent 9cebd81 commit 1b40778
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/kb.gbapp/services/KBService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1572,6 +1572,8 @@ export class KBService implements IGBKBService {
return filePath; // Return the saved file path
} else {

const parsedUrl = new URL(url);

// Get the last part of the URL path or default to 'index' if empty
const pathParts = parsedUrl.pathname.split('/').filter(Boolean); // Remove empty parts
const lastPath = pathParts.length > 0 ? pathParts[pathParts.length - 1] : 'index';
Expand Down

0 comments on commit 1b40778

Please sign in to comment.