📝 CodeRabbit Chat: Implement requested code changes#612
📝 CodeRabbit Chat: Implement requested code changes#612coderabbitai[bot] wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedThis PR was authored by the user configured for CodeRabbit reviews. CodeRabbit does not review PRs authored by this user. It's recommended to use a dedicated user account to post CodeRabbit review feedback. ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
|
|
|
@coderabbitai make azure the main model |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chainLet me explore the codebase to understand the current model configuration. 🏁 Script executed: Length of output: 6799
// Default behavior: Azure -> Gemini -> Grok -> Bedrock -> OpenAI
if (azureEndpoint && azureApiKey) {
const azureOpenai = createOpenAI({
baseURL: azureEndpoint,
apiKey: azureApiKey,
compatibility: 'compatible',
});
try {
return azureOpenai(azureDeploymentName);
} catch (error) {
console.warn('Azure OpenAI API unavailable, falling back to next provider:', error);
}
}
if (gemini3ProApiKey) {
const google = createGoogleGenerativeAI({
apiKey: gemini3ProApiKey,
});
try {
return google('gemini-3.1-pro-preview');
} catch (error) {
console.warn('Gemini 3.1 Pro API unavailable, falling back to next provider:', error);
}
}
if (xaiApiKey) {
const xai = createXai({
apiKey: xaiApiKey,
baseURL: 'https://api.x.ai/v1',
});
try {
return xai('grok-4-fast-non-reasoning');
} catch (error) {
console.warn('xAI API unavailable, falling back to next provider:');
}
}
if (awsAccessKeyId && awsSecretAccessKey) {
const bedrock = createAmazonBedrock({
bedrockOptions: {
region: awsRegion,
credentials: {
accessKeyId: awsAccessKeyId,
secretAccessKey: awsSecretAccessKey,
},
},
});
const model = bedrock(bedrockModelId, {
additionalModelRequestFields: { top_k: 350 },
});
return model;
}
const openai = createOpenAI({
apiKey: openaiApiKey,
});
return openai('gpt-4o');The key change is the comment and order — Azure is now checked first in the default fallback chain ( Would you like me to implement this change directly via a plan? |
|
@coderabbitai plan impelement that |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chainTask: Make Azure the main/first model in the fallback chain
🏁 Script executed: Length of output: 5406
Task: Make Azure the first model in the default fallback chain
Failed to handle agent chat message. Please try again. |
|
@coderabbitai can you fix the model picker such that the azure endpoint is functional |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chainLet me read the current state of the relevant files first. 🏁 Script executed: Length of output: 4732 Let me read the model picker component and related files. 🏁 Script executed: Length of output: 6757 🏁 Script executed: Length of output: 5768 🏁 Script executed: Length of output: 12642 🏁 Script executed: Length of output: 7006 🏁 Script executed: Length of output: 3729
Task: Fix Azure endpoint in the model picker
Failed to handle agent chat message. Please try again. |
Code changes was requested by @ngoiyaeric.
The following files were modified:
.env.local.examplebun.locklib/utils/index.tspackage.json