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

fix(cody-gateway): Disable flagging Google requests#63295

Merged
chrsmith merged 2 commits into
mainfrom
dv/cody-disable-flagging-on-google-provider
Jun 17, 2024
Merged

fix(cody-gateway): Disable flagging Google requests#63295
chrsmith merged 2 commits into
mainfrom
dv/cody-disable-flagging-on-google-provider

Conversation

@vdavid

@vdavid vdavid commented Jun 17, 2024

Copy link
Copy Markdown
Contributor

This PR turns off flagging for all Google models entirely.

Test plan

Not tested yet.

@cla-bot cla-bot Bot added the cla-signed label Jun 17, 2024
Comment thread cmd/cody-gateway/internal/httpapi/completions/google.go

@chrsmith chrsmith left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Like @abeatrix mentioned, let's just not call the function at all and just return nil, nil like we do for Fireworks.

But merging this to get things unblocked sounds good. And then we'll figure out why requests to Gemini are getting flagged.

@chrsmith chrsmith marked this pull request as ready for review June 17, 2024 16:10
@chrsmith chrsmith enabled auto-merge (squash) June 17, 2024 16:10
@chrsmith

Copy link
Copy Markdown
Contributor

David is signing off for the night. I'll ferry this PR into production. And see what could be the root cause here, since I'm inclined to think that the flagging logic is actually "correct".

@chrsmith chrsmith merged commit 7452324 into main Jun 17, 2024
@chrsmith chrsmith deleted the dv/cody-disable-flagging-on-google-provider branch June 17, 2024 16:16
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.

Cody Gateway flags all requests to Google models

3 participants