Merge branch 'main' into gcloud-sql-backups-describe

This commit is contained in:
Gilad Alboher 2023-12-13 12:54:03 +02:00 committed by GitHub
commit fa5e59c5ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 53 additions and 1 deletions

View File

@ -15,7 +15,7 @@
`helm install {{nombre_del_paquete}} {{https://example.com/charts/packagename-1.2.3.tgz}}`
- Instalar un chart de helm y genera un nombre:
- Instala un chart de helm y genera un nombre:
`helm install {{nombre_del_repositorio}}/{{nombre_del_chart}} --generate-name`

24
pages.zh/common/!.md Normal file
View File

@ -0,0 +1,24 @@
# Exclamation mark
> Bash 内置命令,用于替换历史记录中找到的命令。
> 更多信息:<https://www.gnu.org/software/bash/manual/bash.html#Event-Designators>.
- 使用`sudo`重新执行上一个命令:
`sudo !!`
- 通过在`history`中出现的`行号`来调取命令:
`!{{行号}}`
- 调取`history`中的倒数第`数字`条命令:
`!-{{数字}}`
- 调取以`字符串`开头的最近执行的命令:
`!{{字符串}}`
- 调取上一个命令的参数给`当前命令`
`{{当前命令}} !*`

28
pages/common/llm.md Normal file
View File

@ -0,0 +1,28 @@
# llm
> Interact with Large Language Models (LLMs) via remote APIs and models that can be installed and run on your machine.
> More information: <https://llm.datasette.io/en/stable/help.html>.
- Set up an OpenAI API Key:
`llm keys set openai`
- Run a prompt:
`llm "{{Ten fun names for a pet pelican}}"`
- Run a [s]ystem prompt against a file:
`cat {{path/to/file.py}} | llm --system "{{Explain this code}}"`
- Install packages from PyPI into the same environment as LLM:
`llm install {{package1 package2 ...}}`
- Download and run a prompt against a [m]odel:
`llm --model {{orca-mini-3b-gguf2-q4_0}} "{{What is the capital of France?}}"`
- Have an interactive chat with a specific [m]odel:
`llm chat --model {{chatgpt}}`