sourcegraph / cody

Type less, code more: Cody is an AI code assistant that uses advanced search and codebase context to help you write and fix code.
https://cody.dev
Apache License 2.0
2.6k stars 278 forks source link

Enterprise: add support for expanded context window to Gemini 1.5 models #4563

Closed abeatrix closed 3 months ago

abeatrix commented 3 months ago

CONTEXT: https://sourcegraph.slack.com/archives/C05AGQYD528/p1718323087549179?thread_ts=1718316482.993009&cid=C05AGQYD528

CLOSE https://linear.app/sourcegraph/issue/CODY-2356/add-gemini-to-the-list

Test plan

N/A.

Adding a new string to the current list. No feature was changed.

aramaraju commented 3 months ago

@abeatrix This approach won't work for GPT-4o through Azure OpenAI. Here's what the config looks like docs:

CleanShot 2024-06-13 at 17 11 31@2x

abeatrix commented 3 months ago

@abeatrix This approach won't work for GPT-4o through Azure OpenAI. Here's what the config looks like docs:

This PR is for adding support to Gemini 1.5 models for Cody Gateway Enterprise users though.

abeatrix commented 3 months ago

@abeatrix This approach won't work for GPT-4o through Azure OpenAI. Here's what the config looks like docs:

The model ID for GPT-4o through Azure OpenAI is also listed as gpt-4o in their doc, so shouldn't this work?