Sunn Yao

Results 3 issues of Sunn Yao

ox-hugo从org文件导出成md文件,如果带有:author:属性,则导出后的md文件的author属性会是如下形式: ```author = [xxxxx]``` ox-hugo官方给出了解决方案,可以在调用.Params.author属性时加入以下判断: ``` {{ with .Params.author }} {{ $author_type := (printf "%T" .) }} {{ $author_is_slice := (eq "[]string" $author_type) }} {{ if $author_is_slice }} {{ delimit...

enhancement

1. doom-emacs的新窗口貌似都统一设定成下部1/4高度的了,这样用aweshell-new开启新的shell窗口也是这么大,为此我写了个调用函数来解决: ``` (require 'aweshell) (defun cnsunyour/call-aweshell-new () (interactive) (progn (aweshell-new) (delete-other-windows))) (global-set-key (kbd "s-'") 'cnsunyour/call-aweshell-new) ``` 2. 不知为何,在doom-emacs里调用aweshell后eshell prompt的保护失效了,按着回退键会一直把所有字符删掉。本想努把力试图找到原因,无奈水平实在太菜,看了半天也不明所以,只能向猫大反映了。

bug

按照 chatgpt 的样子抄了一份用在 azure openai 上,测试了下可以正常运行。 不知道有没有更简单的方法从 chatgpt 上扩展成 azure openai ,毕竟功能基本相同。 对代码不是很熟悉,只有用这种抄的方法弄了一个,就比较冒失的发了上来,还请大佬决断。 另外,api-version 用的是 2023-05-15 ,原因是用新的版本 stream 会出错。