Code Monkey home page Code Monkey logo

wiki's Introduction

gptwiki

query wiki pages generated by gpt

install

go install github.com/u2takey/wiki@latest

usage

# do init
➜ wiki init --chatgpt-key=[optinal chatgpt-key]

# update with latest documents
➜ wiki update


# query
➜ wiki curl
  1 curl
  ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

  1.1 chatgpt

  curl 是一个命令行工具,用于通过 HTTP、FTP、SMTP 等协议传输数据。它可以用来从一个 URL 获取文件、发送 HTTP POST 请求、上
  传文件等操作。

  具体来说,curl 命令的常用选项和参数如下:
  • -X 指定请求的 HTTP 方法(GET、POST、PUT 等);
  • -d 指定提交的数据,可以是字符串或者文件;
  • -H 指定请求头,可以添加多个请求头;
  • -i 输出 HTTP 响应头;
  • -I 只输出 HTTP 响应头的第一行(即状态行);
  • -o 指定输出文件的名称或路径;
  • -O 将服务器返回的数据保存到当前目录下的文件,文件名为请求的资源的文件名;
  • -v 输出详细的调试信息;
  • -s 静默模式,不输出任何信息;
  • -k 允许不验证 SSL 证书;
  • -c 指定 cookie 文件的路径;
  • -b 指定 cookie 字符串;
  • -A 指定用户代理;
  • -u 指定用户名和密码。

  使用 curl 命令时,我们需要指定要请求的 URL,以及一些选项和参数,例如:

wiki's People

Contributors

u2takey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.