-
Notifications
You must be signed in to change notification settings - Fork 629
download llms.txt from docs when running cog init #2504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it locally. Works like a charm.
Build
cd cog
make install PREFIX=$(go env GOPATH)
Test (online)
mkdir cog-init-with-agents-file-online
cd cog-init-with-agents-file-online
~/go/bin/cog init --x-pipeline
Setting up the current directory for use with Cog...
✅ Created /Users/z/Desktop/foo-download-agents-on-init/.dockerignore
✅ Created /Users/z/Desktop/foo-download-agents-on-init/AGENTS.md
✅ Created /Users/z/Desktop/foo-download-agents-on-init/README.md
✅ Created /Users/z/Desktop/foo-download-agents-on-init/cog.yaml
✅ Created /Users/z/Desktop/foo-download-agents-on-init/main.py
✅ Created /Users/z/Desktop/foo-download-agents-on-init/requirements.txt
Done! For next steps, check out the docs at https://cog.run/getting-started
Test (offline)
mkdir cog-init-with-agents-file-offline
cd cog-init-with-agents-file-offline
$ ~/go/bin/cog init --x-pipeline
Setting up the current directory for use with Cog...
✅ Created /Users/z/Desktop/foo-download-agents-on-init/.dockerignore
Failed to download AGENTS.md: failed to fetch AGENTS.md: Get "https://replicate.com/docs/reference/pipelines/llms.txt": dial tcp [2606:4700:20::ac43:4557]:443: connect: no route to host
Using template version instead...
✅ Created /Users/z/Desktop/foo-download-agents-on-init/AGENTS.md
✅ Created /Users/z/Desktop/foo-download-agents-on-init/README.md
✅ Created /Users/z/Desktop/foo-download-agents-on-init/cog.yaml
✅ Created /Users/z/Desktop/foo-download-agents-on-init/main.py
✅ Created /Users/z/Desktop/foo-download-agents-on-init/requirements.txt
Done! For next steps, check out the docs at https://cog.run/getting-started
|
Not the most glamorous error here, but it's the truth: |
|
Thanks for testing @zeke! What do you think of making the error simpler? Made the change in most recent commit: https://github.com/replicate/cog/pull/2504/commits |
f132540 to
1546df2
Compare
1546df2 to
5a72606
Compare
|
Tiny code change suggestion, but not a deal-breaker. Let's ship this! 👍🏼 |
No description provided.