Ruby programmer writing Golang. Vim lover.
- China, Beijing
- https://lingceng.github.io
Block or Report
Block or report lingceng
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
-
Dynamic import highlight.js language...
Dynamic import highlight.js language in Rails7 1# For code syntax highlight
2pin "highlight.js/lib/core", to: "https://ga.jspm.io/npm:highlight.js@11.8.0/lib/core.js"
3common_langs = ['xml', 'bash', 'c', 'cpp', 'csharp', 'css', 'markdown', 'diff', 'ruby',
4'go', 'graphql', 'ini', 'java', 'javascript', 'json', 'kotlin', 'less',
5'lua', 'makefile', 'perl', 'objectivec', 'php', 'php-template', 'plaintext',
-
Ruby chatgpt chat api when stream mo...
Ruby chatgpt chat api when stream mode, deal with error handle and chunk break. 1class Chatgpt::PlainChatgptClient
2def self.chat(parameters)
3@client ||= generate_client
45res = @client.post("/v1/chat/completions") do |req|
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.