Liut

Results 7 issues of Liut

我买了txt以及sql版,想转成这个dat格式,有合适的脚本或者程序么?

为了方便尽快依据文档定义生成相应的模型,建立一个Makefile,提供两个生成指令 ```sh make errcodegen make sdkcodegen make sdkcodegen MDs=apis.md make sdkcodegen MDs='apis.md oa.md' ```

In backend with golang (like https://github.com/sashabaranov/go-openai), the responseText always has a '\n'.

重新开了一个独立的后端项目,使用 Golang 实现 https://github.com/liut/morrigan ,敬请关注 特性: - 支持 SSE 文本/事件流,标准的哦,当然也包括这个项目service里的 `octet-stream` 那种 - 基于Redis的聊天记录历史 - RESTful API - 可配置的初始欢迎消息和预设消息集(基于YAML) - 使用OAuth2客户端登录以一些安全提供商 OpenAI/ChatGPT Backend with conversation and API ## Features -...

* 同官网接口一致,启用SSE请求协议 * 为了近一步减少流量,简化了stream相关的消息体,其他暂时用不到的字段先忽略不输出 * 同时提升参数csid(即conversionId)的位置 ```ts interface StreamMessage { id: string csid?: string pmid?: string delta: string text?: string finishReason?: string } ``` * 相应的,添加服务接口 `/api/chat-sse`,用于实现 'text/event-stream' 输出

启用`OAuth2`验证登录,正在测试中 验证流程: 1. `/api/session`: 检测到未登录时,重定向到 `/auth/start` 2. `/auth/start`: 重定向到指定的`OAuth2` 服务提供者(`SP`) 3. 在`SP`页面中登录并授权,重定向到 `/auth/cb` 4. `/auth/cb`: 通过授权`code`读取票据和用户信息,保存到`cookie`,验证成功 新的服务配置项,new settings for service ``` CLIENT_ID= CLIENT_SECRET= OAUTH_PREFIX=https://my-oauth-example.online OAUTH_AUTHZ_PATH=/authorize OAUTH_TOKEN_PATH=/token ```

After updated to v1.2.1 today, I noticed that my unit tests which used to pass are now failing. It seems like the unique tag option in nested structures has become...