Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Trivial additions#63601

Merged
chrsmith merged 2 commits into
mainfrom
chrsmith/misc-fixes
Jul 3, 2024
Merged

Trivial additions#63601
chrsmith merged 2 commits into
mainfrom
chrsmith/misc-fixes

Conversation

@chrsmith

@chrsmith chrsmith commented Jul 2, 2024

Copy link
Copy Markdown
Contributor

Couple of trivial changes I teased out of some stacked PRs.

  • There were a couple of codepaths where we returned a non-200 in the Completions API but didn't have any logging statements.
  • Adds the ProviderOverride::DisplayName field. This will allow Sourcegraph admins who provide custom providers the ability to give them friendly names. (So that this information is available so it can be more useful than the raw ID.)

Re: ProviderOverride.DisplayName, I don't expect this to be a required field. Or even used very often. But when debugging things, it seemed more helpful than just the opaque provider string like anthropic-via-sourcegraph or anthropic-via-aws-bedrock.

Test plan

NA

Changelog

NA

@chrsmith chrsmith requested review from a team and emidoots July 2, 2024 15:36
@cla-bot cla-bot Bot added the cla-signed label Jul 2, 2024
@chrsmith chrsmith changed the title Chrsmith/misc fixes Trivial additions Jul 2, 2024
@chrsmith chrsmith merged commit 5e516fa into main Jul 3, 2024
@chrsmith chrsmith deleted the chrsmith/misc-fixes branch July 3, 2024 16:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants