Skip to content

Commit

Permalink
fix: tiktoken download fail if cache folder doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubPecenka authored and deathbeam committed Oct 30, 2024
1 parent 4fe421b commit eafa918
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/CopilotChat/tiktoken.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ local tiktoken_core = nil
---@param fname string
---@return string
local function get_cache_path(fname)
vim.fn.mkdir(vim.fn.stdpath('cache'), 'p')
return vim.fn.stdpath('cache') .. '/' .. fname
end

Expand Down

0 comments on commit eafa918

Please sign in to comment.