ZHIPU_API_KEY=... uv run main.py完成一次对话后,调整 tools 参数,再对话触发新增工具调用。
| use AppleScript version "2.8" -- Yosemite (10.10) or later | |
| use framework "Foundation" | |
| use framework "CoreWLAN" | |
| use scripting additions | |
| set wifiInterface to current application's CWInterface's interfaceWithName:"en0" | |
| -- Require location permission granted | |
| -- Print the entire object | |
| log quoted form of (wifiInterface's interfaceName as string) |
| ARG RUST_VERSION=1.79.0 | |
| FROM rust:${RUST_VERSION}-alpine AS base | |
| RUN apk add --no-cache musl-dev | |
| WORKDIR /workspace | |
| FROM base AS cargo-cross | |
| RUN --mount=type=cache,target=/usr/local/cargo/git/db \ | |
| --mount=type=cache,target=/usr/local/cargo/registry/cache \ | |
| --mount=type=cache,target=/usr/local/cargo/registry/index \ |
This currently supports vector development.
| from IPython.core.magic import needs_local_scope, register_line_magic | |
| @register_line_magic | |
| @needs_local_scope | |
| def clip(line, local_ns): | |
| import json | |
| import os | |
| import subprocess |
| package main | |
| import ( | |
| "fmt" | |
| "encoding/json" | |
| ) | |
| func main() { | |
| var ( | |
| lst []string |
| """ | |
| https://github.com/containers/podman/issues/8016#issuecomment-920015800 | |
| """ | |
| import getpass | |
| import os | |
| import re | |
| import shlex | |
| import subprocess | |
| from pathlib import Path |
| module github.com/linw1995/etcd_learning | |
| go 1.16 | |
| replace ( | |
| github.com/coreos/bbolt => go.etcd.io/bbolt v1.3.6 | |
| google.golang.org/grpc => google.golang.org/grpc v1.26.0 | |
| ) | |
| require ( |
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| func main() { | |
| now := time.Now() | |
| fmt.Println( |