分两种情况:
- 代码仓库管理者给你添加该仓库的写入权限,这样的话可以直接push
- 如果不能直接push(大多数情况),采用经典的fork & pull request来提交代码,下面讲述这种情况
例如有个仓库https://github.com/ecomfe/esui.git,其采用了经典的分支开发模型,稳定后的代码提交到master分支,其余特性则在dev分支上进行开发,待成熟后合并回master分支。
| const YOUR_CLAUDE_KEY = '' | |
| async function main() { | |
| const resp = await fetch('https://api.anthropic.com/v1/messages', { | |
| method: 'POST', | |
| headers: { | |
| "x-api-key": YOUR_CLAUDE_KEY, | |
| "anthropic-version": '2023-06-01', | |
| "content-type": "application/json", | |
| }, | |
| body: JSON.stringify({ |
| # trim.py | |
| # trim the vocabulary of mt5 model in huggingface.co | |
| # MIT License | |
| # Copyright (c) 2022 K024 | |
| # %% | |
| import torch | |
| from tqdm.auto import tqdm | |
| # %% |