摘要: With Temperature = 0, everytimes it generates same response, with high temperature, it add more randomness into the response. prompt = f""" You are a 阅读全文
posted @ 2023-05-02 15:14 Zhentiw 阅读(32) 评论(0) 推荐(0) 编辑
摘要: Universal Translator Imagine you are in charge of IT at a large multinational e-commerce company. Users are messaging you with IT issues in all their 阅读全文
posted @ 2023-05-02 14:58 Zhentiw 阅读(12) 评论(0) 推荐(0) 编辑
摘要: reverse()mutates the original array, return the reference point to the original array. The toReversed() method of Array instances is the copying count 阅读全文
posted @ 2023-05-02 14:06 Zhentiw 阅读(20) 评论(0) 推荐(0) 编辑
摘要: sort(), mutates the original array, and return the reference to original array and sorted. The toSorted() method of Array instances is the copying ver 阅读全文
posted @ 2023-05-02 14:04 Zhentiw 阅读(31) 评论(0) 推荐(0) 编辑
摘要: Array.prototype.splice()mutates the original array. To avoid mutation, we use Array.prototype.slice(). new method Array.prototype.toSpliced() return a 阅读全文
posted @ 2023-05-02 14:01 Zhentiw 阅读(77) 评论(0) 推荐(0) 编辑
摘要: Prevously, when we want to upate an item inside a array: const items = [ {id: 1, name: 'a'}, {id: 2, name: 'b'}, {id: 3, name: 'c'}, {id: 4, name: 'd' 阅读全文
posted @ 2023-05-02 13:55 Zhentiw 阅读(30) 评论(0) 推荐(0) 编辑
摘要: Sentiment (positive/negative) lamp_review = """ Needed a nice lamp for my bedroom, and this one had \ additional storage and not too high of a price p 阅读全文
posted @ 2023-05-02 01:41 Zhentiw 阅读(28) 评论(0) 推荐(0) 编辑