Comments (3)
@dmartinol @RobotSail @cooktheryan
I think we can set up a github workflow on this repo that whenever I type /copilot-ops in a comment it runs the cli and creates a PR referencing that comment, and then we can resolve this issue by typing:
/copilot-ops edit README.md -- replace all OPENAI_API_TOKEN with OPENAI_API_KEY
:)
https://pakstech.com/blog/gh-actions-issue-comments/
https://github.community/t/how-to-use-the-github-actions-bot/16535/2
from copilot-ops.
ok we have an initial bot, so lets try this:
/copilot-ops edit --file README.md --request "The variable name is described as OPENAI_API_TOKEN in the README.md, but actually it is OPENAI_API_KEY"
from copilot-ops.
exec: ["/copilot-ops","edit","--file","README.md","--request","The variable name is described as OPENAI_API_TOKEN in the README.md, but actually it is OPENAI_API_KEY"]
exitCode:
0
stdout:
num parts: 1
stderr:
2022/06/08 19:02:29 flags:
2022/06/08 19:02:29 - request : The variable name is described as OPENAI_API_TOKEN in the README.md, but actually it is OPENAI_API_KEY
2022/06/08 19:02:29 - write : false
2022/06/08 19:02:29 - path : .
2022/06/08 19:02:29 - file : [README.md]
2022/06/08 19:02:29 - fileset : []
2022/06/08 19:02:29 - ntokens : 0
2022/06/08 19:02:29 viper: /home/runner/work/copilot-ops/copilot-ops/.copilot-ops.yaml
2022/06/08 19:02:29 viper:
2022/06/08 19:02:29 Filesets: [{Name:examples Files:[examples/*.yaml]} {Name:stock-data Files:[examples/stock-data.yaml]} {Name:cluster-scope-overlays Files:[examples/stale_dev_overlay/*.yaml]} {Name:app1 Files:[examples/app1/*.yaml]}]
2022/06/08 19:02:29 loading files from command line: [README.md]
2022/06/08 19:02:29 LoadFilesFromGlob "README.md" - matches [README.md]
2022/06/08 19:02:29 filemap: len 1
2022/06/08 19:02:29 - tag: "README.md": path: "README.md" [# copilot-ops `copilot-ops` i ...] len 6170
2022/06/08 19:02:29 decoded input: "# @README.md\n# copilot-ops\n\n`copilot-ops` is a CLI tool that boosts up any \"devops repo\" to a ninja level of *Artificially Intelligent Ops Repo*.\n\n ..."
2022/06/08 19:02:32 received patch from OpenAI: "# @README.md\n# copilot-ops\n\n`copilot-ops` is a CLI tool that boosts up any \"devops repo\" to a ninja level of *Artificially Intelligent Ops Repo*.\n\n"
2022/06/08 19:02:32 filemap: len 1
2022/06/08 19:02:32 - tag: "README.md": path: "README.md" [# copilot-ops `copilot-ops` i ...] len 6165
2022/06/08 19:02:32
# @README.md
# copilot-ops
`copilot-ops` is a CLI tool that boosts up any "devops repo" to a ninja level of *Artificially Intelligent Ops Repo*.
## Requirements
In order to use `copilot-ops`, you need to have an OpenAI account with access to the GPT-3 Codex model,
and an API key saved as the `OPENAI_API_KEY` environment variable.
## Installation
Installing `copilot-ops` is simple, simply clone this repository and `make build`:
...
from copilot-ops.
Related Issues (20)
- Test the loading/writing mechanisms
- maybe enable after https://github.com/sivchari/nosnakecase/issues/14
- Fine tuning the model using our collection of devops request/responses
- generalize overriding default values via CLI
- Generate arbitrary BASH commands
- Include instructions to download the binary HOT 1
- Hosting copilot-ops as a service, hiding AI engine subscription internally HOT 2
- Project Branding HOT 3
- Summer 2022 Internship Roadmap
- OpenAI Quota exceeded
- Potentially use go-gpt3 as a client for OpenAI
- change to 1.18 when most linters support it, see https://github.com/golangci/gol... HOT 1
- enable after fixing false positives
- and other comment keywords
- Create a constant enumeration of engines so that we can include HOT 1
- copilot-ops Github Bot HOT 2
- Builds docker image for the bot
- Override API URL HOT 1
- add more tests for expected success HOT 1
- add more cases that should fail HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from copilot-ops.