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

Minor refactoring, fixes#63766

Merged
chrsmith merged 5 commits into
mainfrom
chrsmith/misc-fixes
Jul 10, 2024
Merged

Minor refactoring, fixes#63766
chrsmith merged 5 commits into
mainfrom
chrsmith/misc-fixes

Conversation

@chrsmith

Copy link
Copy Markdown
Contributor

A couple of minor changes to minimize the diff for "large completions API refactoring".

Most changes are just a refactoring of the openai completions provider, which I apparently missed in https://github.com/sourcegraph/sourcegraph/pull/63731. (There are still some smaller tweaks that can be made to the fireworks or google completion providers, but they aren't as meaningful.

This PR also removes a couple of unused fields and methods. e.g. types.CompletionRequestParameters::Prompt. There was a comment to the effect of it being long since deprecated, and it is no longer read anywhere on the server side. So I'm assuming that a green CI/CD build means it is safe to remove.

Test plan

CI/CD

Changelog

NA

@chrsmith chrsmith requested a review from emidoots July 10, 2024 19:59
@cla-bot cla-bot Bot added the cla-signed label Jul 10, 2024
@chrsmith chrsmith merged commit de2ef79 into main Jul 10, 2024
@chrsmith chrsmith deleted the chrsmith/misc-fixes branch July 10, 2024 21:27
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