Comments (3)
What I did was create an API that follows the OpenAI api standard, this way I only needed to set openai.api_base = 'my_url' and it worked fine.
There is also the LocalAI project that follows the same pattern.
https://github.com/go-skynet/LocalAI
from autopr.
this seems relevant here, but more so a separate issue:
go-gitea/gitea#13539
https://blog.gitea.io/2023/03/hacking-on-gitea-actions/
https://blog.gitea.io/2022/12/feature-preview-gitea-actions/
https://gitea.com/gitea/tea/actions
also:
https://github.com/nektos/act
(linked from https://gitea.com/gitea/act_runner)
from autopr.
Hey, thanks for the suggestion!
I think I'd rather move away from using the openai
library in the long run (except potentially in its own self-contained repo implementation). Last time I talked to @ShreyaR she pointed me to the mainfest library, which looks like a really clean provider-agnostic solution for specifying LLM models. I believe this would interface with our config yaml really well too.
from autopr.
Related Issues (20)
- Error fixing "Translate id method to python" HOT 1
- ValueError: Error looking at files HOT 13
- Iterate with code review comments
- How to know if OpenAI key is valid? HOT 2
- Restricting code changes to the current commit
- OpenAI error HOT 1
- ValueError: Cannot end root section; openai.error.InvalidRequestError: The model `gpt-4` does not exist or you do not have access to it. HOT 4
- Branch hard-coded to `main` - should use config branch HOT 1
- Empty commit with [placeholder] title HOT 5
- [AutoPR] TODO make these configurable
- [AutoPR] TODO this depends on the filename of the event jso ...
- [AutoPR] FIXME does nice syntax highlighting for tracebacks ...
- [AutoPR] TODO subtract length of rest of prompt
- [AutoPR] TODO implement this so that we can pass variables ...
- [AutoPR] TODO we should consolidate these forward refs with ...
- [AutoPR] TODO migrate to pydantic 2.0, and use a nested sel ...
- [AutoPR] TODO use jsonpath_ng instead
- [AutoPR] TODO if it's a template, enforce dict structure on ...
- [AutoPR] TODO split out multiple triggered workflows into s ...
- Error fixing "Error in test_select" 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 autopr.