Skip to content

Loading a custom provider in code #154

Answered by ianarawjo
jonborchardt asked this question in Q&A
Discussion options

You must be logged in to vote

Np... The function called on load is here: https://github.com/ianarawjo/ChainForge/blob/0b32792d07b3b607bd0f1d614afb145ae0f7ed36/chainforge/flask_app.py#L589C16-L589C16

The folder is relative to the package, I believe:
So where the flask_app.py file is located, then /cache/provider_scripts

The app calls loadCachedCustomProviders upon load:

fetch_from_backend('loadCachedCustomProviders', {}, console.error).then((json) => {

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@jonborchardt
Comment options

@ianarawjo
Comment options

Answer selected by jonborchardt
@jonborchardt
Comment options

@jonborchardt
Comment options

@jonborchardt
Comment options

@ianarawjo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants