Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete: Fix cody-autocomplete-claude-instant-infill experiment #1132

Merged
merged 4 commits into from
Sep 21, 2023

Conversation

philipp-spiess
Copy link
Contributor

Seems like there was a conflict between @abeatrix's addition of the feature flag and @taras-yemets' restructurings. The result of resolveDefaultProviderFromVSCodeConfigOrFeatureFlags was no longer used for the Anthropic initialization causing users to load the wrong prompt mode if cody-autocomplete-claude-instant-infill is enabled.

Test plan

  • Make sure you are connected to doctom
  • Be in the control group of the StarCoder experiment (needs dotcom admin access)
  • Ensure no model or provider overwrites are active
  • Observe that the right mode is loaded
Screenshot 2023-09-21 at 15 16 22

Copy link
Contributor

@abeatrix abeatrix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the quick fix!

@philipp-spiess philipp-spiess merged commit a4d800c into main Sep 21, 2023
11 checks passed
@philipp-spiess philipp-spiess deleted the ps/ac-anthropic-init branch September 21, 2023 13:31
philipp-spiess added a commit that referenced this pull request Sep 21, 2023
…1132)

Seems like there was a conflict between @abeatrix's addition of the
feature flag and @taras-yemets' restructurings. The result of
`resolveDefaultProviderFromVSCodeConfigOrFeatureFlags` was no longer
used for the Anthropic initialization causing users to load the wrong
prompt mode if `cody-autocomplete-claude-instant-infill` is enabled.

## Test plan

- Make sure you are connected to doctom
- Be in the control group of the StarCoder experiment (needs dotcom
admin access)
- Ensure no model or provider overwrites are active
- Observe that the right mode is loaded

<img width="962" alt="Screenshot 2023-09-21 at 15 16 22"
src="https://github.com/sourcegraph/cody/assets/458591/28ea32de-dd8d-41e0-8672-0f8680771514">

<!-- Required. See
https://docs.sourcegraph.com/dev/background-information/testing_principles.
-->
@taras-yemets
Copy link
Contributor

Thank you, @philipp-spiess!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants