This repository was archived by the owner on Sep 30, 2024. It is now read-only.
cody-gateway, sourcegraph: disable code completions for OpenAI#55624
Merged
cody-gateway, sourcegraph: disable code completions for OpenAI#55624
Conversation
eseliger
approved these changes
Aug 7, 2023
Member
eseliger
left a comment
There was a problem hiding this comment.
Works for me, but I'll defer to other people tagged for review here to make the call if this is standing in the way of some other efforts.
Co-authored-by: Erik Seliger <erikseliger@me.com>
Member
Author
|
Beyang indicated disabling is likely the right way to go, but will wait for another approval here 👍 |
philipp-spiess
approved these changes
Aug 8, 2023
Contributor
philipp-spiess
left a comment
There was a problem hiding this comment.
I think this makes sense, yeah.
Should we add to the docs that enabling OpenAI disables code completions completely? Just so that people aren't confused.
…ateway-disable-openai-code-completions
….com:sourcegraph/sourcegraph into cody-gateway-disable-openai-code-completions
….com:sourcegraph/sourcegraph into cody-gateway-disable-openai-code-completions
Contributor
|
The backport to To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-5.1 5.1
# Navigate to the new working tree
cd .worktrees/backport-5.1
# Create a new branch
git switch --create backport-55624-to-5.1
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 151f43ff2b6650d8de83ddc99b5f99e661d39b3e
# Push it to GitHub
git push --set-upstream origin backport-55624-to-5.1
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-5.1Then, create a pull request where the |
bobheadxi
added a commit
that referenced
this pull request
Aug 9, 2023
Using OpenAI for Cody code completions is currently [untested and unsupported](https://sourcegraph.slack.com/archives/CN4FC7XT4/p1690986792111129?thread_ts=1690931810.610299&cid=CN4FC7XT4). Despite this, we have [at least one customer generating very large numbers of OpenAI code completions requests](https://sourcegraph.slack.com/archives/C03JR7S7KRP/p1691438665847449?thread_ts=1689373762.522179&cid=C03JR7S7KRP) - enough to get us [rate limited by OpenAI](https://sourcegraph.sentry.io/issues/4372449189/?alert_rule_id=14416305&alert_type=issue&project=4505201451270144). This change: - Makes Cody Gateway reject OpenAI code completions requests (responding with 501 not implemented) - Prevents Sourcegraph from generating OpenAI code completion requests CI --------- Co-authored-by: Erik Seliger <erikseliger@me.com> (cherry picked from commit 151f43f)
bobheadxi
added a commit
that referenced
this pull request
Aug 9, 2023
…r OpenAI (#55624) (#55689) Backport of #55624, created manually --- Using OpenAI for Cody code completions is currently [untested and unsupported](https://sourcegraph.slack.com/archives/CN4FC7XT4/p1690986792111129?thread_ts=1690931810.610299&cid=CN4FC7XT4). Despite this, we have [at least one customer generating very large numbers of OpenAI code completions requests](https://sourcegraph.slack.com/archives/C03JR7S7KRP/p1691438665847449?thread_ts=1689373762.522179&cid=C03JR7S7KRP) - enough to get us [rate limited by OpenAI](https://sourcegraph.sentry.io/issues/4372449189/?alert_rule_id=14416305&alert_type=issue&project=4505201451270144). This change: - Makes Cody Gateway reject OpenAI code completions requests (responding with 501 not implemented) - Prevents Sourcegraph from generating OpenAI code completion requests CI --------- Co-authored-by: Erik Seliger <erikseliger@me.com> (cherry picked from commit 151f43f) ## Test plan <!-- All pull requests REQUIRE a test plan: https://docs.sourcegraph.com/dev/background-information/testing_principles -->
davejrt
pushed a commit
that referenced
this pull request
Aug 9, 2023
Using OpenAI for Cody code completions is currently [untested and unsupported](https://sourcegraph.slack.com/archives/CN4FC7XT4/p1690986792111129?thread_ts=1690931810.610299&cid=CN4FC7XT4). Despite this, we have [at least one customer generating very large numbers of OpenAI code completions requests](https://sourcegraph.slack.com/archives/C03JR7S7KRP/p1691438665847449?thread_ts=1689373762.522179&cid=C03JR7S7KRP) - enough to get us [rate limited by OpenAI](https://sourcegraph.sentry.io/issues/4372449189/?alert_rule_id=14416305&alert_type=issue&project=4505201451270144). This change: - Makes Cody Gateway reject OpenAI code completions requests (responding with 501 not implemented) - Prevents Sourcegraph from generating OpenAI code completion requests ## Test plan CI --------- Co-authored-by: Erik Seliger <erikseliger@me.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Using OpenAI for Cody code completions is currently untested and unsupported. Despite this, we have at least one customer generating very large numbers of OpenAI code completions requests - enough to get us rate limited by OpenAI.
This change:
Test plan
CI