摘要: 这是一个node+koa2接入Azure OpenAI服务的项目,已实现的服务有: 1.聊天服务(chatGpt.js):包含gpt3.5、gpt4、gpt4-preview。 2.文生图服务(createImage.js):通过DALLE-3模型生成图片。 3.图片分析服务(pictureAnal 阅读全文
posted @ 2024-01-02 17:24 尹言覃少 阅读(19) 评论(0) 推荐(0) 编辑
摘要: <div class="dzm-textarea" id="dzm-textarea" contenteditable="true" @keypress="onKeypress" placeholder="输入文本" style="overflow: auto;"></div> const onKe 阅读全文
posted @ 2023-08-30 17:23 尹言覃少 阅读(244) 评论(0) 推荐(0) 编辑
摘要: async def create_by_custom(query, modelType): temperature = 0.2 frequency_penalty = 0 presence_penalty = 0 try: if int(modelType) == 2: openai.api_typ 阅读全文
posted @ 2023-08-30 17:09 尹言覃少 阅读(83) 评论(0) 推荐(0) 编辑
摘要: OpenAI Embedding 是一种用于生成文本嵌入向量的 API,OpenAI 目前提供了以下三种训练模型: text-embedding-001:该模型是基于大规模语料库训练的通用文本嵌入模型,可以用于各种自然语言处理任务,如语义相似度计算、分类、聚类等。 davinci:该模型是基于 GP 阅读全文
posted @ 2023-03-24 10:28 尹言覃少 阅读(941) 评论(0) 推荐(0) 编辑
摘要: 开源免费工具库 1.AntV:https://antv.vision/zh (强烈推荐:文档、示例清晰,上手快速开发) 2.Vis.js:https://visjs.org/ (推荐:支持各种自定义操作,文档是英文但是可以看demo源代码) 3.JTopo:www.jtopo.com/ (一般推荐: 阅读全文
posted @ 2023-01-30 12:05 尹言覃少 阅读(716) 评论(2) 推荐(0) 编辑
摘要: CkPlayer地址:https://www.ckplayer.com/manual/8.html#m31 LivePlayer:https://www.liveqing.com/docs/manuals/LivePlayer.html 它们都支持:m3u8、flv、rtmp,三种播流方式对比如下: 阅读全文
posted @ 2022-07-08 17:50 尹言覃少 阅读(753) 评论(0) 推荐(0) 编辑
摘要: 前置资源: 一、JDK及apktool安装 jdk1.8 apktool:下载地址https://ibotpeaches.github.io/Apktool/ 相关资源: https://www.zhihu.com/question/29370382 https://ibotpeaches.gith 阅读全文
posted @ 2022-04-15 16:32 尹言覃少 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 1.异常分类,大致可以分为以下三类 运行时异常:如使用接口未返回的数据、数组下标取值不存在的情况 静态资源加载异常:如图片、css等文件加载错误 异步请求错误:promise请求接口未做catch处理 2.异常捕获 运行时异常捕获:window.onerror = function(message, 阅读全文
posted @ 2022-03-07 16:23 尹言覃少 阅读(293) 评论(0) 推荐(0) 编辑
摘要: git管理配置多个SSH_KEY步骤 阅读全文
posted @ 2022-01-11 14:09 尹言覃少 阅读(221) 评论(0) 推荐(0) 编辑
摘要: H5软键盘搜索 阅读全文
posted @ 2022-01-11 09:50 尹言覃少 阅读(143) 评论(0) 推荐(0) 编辑