ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    curl 输出的 json 如何格式化美化

    Feb 14, 20233 min read

    在 curl 命令后面加上 | python -m json.too。这样会用 python 模块来格式化 json 输出。缺点是中文字符会被 unicode 编码

    curl -s -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"prompt":"function fetchData() {","max_tokens":100,"temperature":0.1,"stop":["\n\n"]}' http://192.168.2.220:500/v1/engines/codegen/completions | python3 -m json.tool
    

    相关文章

    How to put border on <area>?

    To add a border to an <area> element, apply CSS styling directly using the 'border' property within the 'style' attribute, as demonstrated with a 1px solid black border.

    抖音视频支持什么格式?

    抖音支持MP4、H.264、H.265、AVC、MOV、MPEG-4等多种视频格式。

    Flutter 透明色设置

    Flutter 中可以通过 `Color.fromRGBO(r, g, b, 0)` 或 `Colors.red.withOpacity(0)` 设置透明背景色。

    深入探究TypedArray:使用场景及理解举例

    TypedArray是JavaScript中用于高效处理二进制数据的数据结构,适用于大规模数学计算、网络通信、流媒体处理和Web Worker等场景。

    SwiftUI 如何使用 highPriorityGesture() 强制一个手势先识别另一个手势?

    在 SwiftUI 中,使用 highPriorityGesture() 方法可以为视图添加一个高优先级的手势,确保其在其他手势之前被识别,如示例中 Circle 视图的单击手势优先于拖拽手势。