Conversation
|
@yingjiehe-xyz looks good - but that implies that you have to set it each time? can you jsut have it default and press submit? |
|
@acekyd can you update the docs once this is merged? |
no, we only need to set it once and it will be updated in the config.yaml |
| body: JSON.stringify({ | ||
| key: keyName, | ||
| value: apiKey.trim(), | ||
| isSecret: isSecretKey(keyName), |
There was a problem hiding this comment.
@alexhancock @lily-de i think it'd be good to have a secret toggle when setting up the provider - we can probably infer and autofill based on the name (key, token, password, etc)
There was a problem hiding this comment.
Yes, we could do this.
Since we're talking here:
On first look, I have mixed feelings about the API design. The /secrets/store endpoint having a boolean param for isSecret is a bit confusing.
What do you both think about renaming the endpoint if we want to store things that are not secret/sensitive sometimes? @yingjiehe-xyz @salman1993
There was a problem hiding this comment.
Maybe something like /value/store or /config/store? Those are just the first things that come to mind - likely better options.
There was a problem hiding this comment.
yes, I agree on that, how about /config/store? it sounds good. Then we may have one more followup question, do we still want to have the API and handler in secrets.ts file?
There was a problem hiding this comment.
I would like to rename the secrets.ts to something like config.ts
There was a problem hiding this comment.
yeah we can do /config/store and also rename file to config.ts
There was a problem hiding this comment.
synced with @salman1993 offline, let's go with /config/store and rename secrets.ts to something like config.ts
There was a problem hiding this comment.
@alexhancock can we do the renaming in a separate refactor PR? i think it'll be easier to review
|
lgtm! tested this out both in the UI and the CLI. added some minor comments. let's also get a review from one of the UI folks |
| ◇ Provider Ollama requires OLLAMA_HOST, please enter a value | ||
| │ http://localhost:11434 | ||
| │ |
There was a problem hiding this comment.
lowkey just a bit confused because i definitely have ran ollama models without this parameter being set. if the user doesn't set this, can they still use the ollama provider or will the UI lock them out from doing so because of how things currently work?
There was a problem hiding this comment.
We have the default value, the config should be empty for the current users, and then the default value will be populated:
|
Small things that need to be updated:
|
Thanks for the call! Synced offline, let's do it in the following PR |






Allow setting ollama host during configuration
Test step:
launchctl setenv OLLAMA_HOST "0.0.0.0:11111"on mac and start run ollamaOLLAMA_HOST=0.0.0.0:11111 ollama lsRun the UI can test with host change

Run goose configure CLI: