Unify utility model settings and align git generation (#486)
* refactor(api): extend git generation payload types * refactor(settings): add git provider model fields * feat(config): persist git provider model defaults * feat(git-api): send provider and model ids * fix(git-api): forward generation options in runtime * feat(git-view): use configured model for commit generation * feat(git-view): pass configured model for PR generation * feat(vscode): forward model selection in git bridge payload * feat(vscode): align PR generation with session model flow * feat(web): resolve and generate git text with provider model * refactor(settings): unify utility model picker across providers * chore(settings): rename sidebar item to utility model * fix(git-model): validate and auto-heal stale utility selections --------- Co-authored-by: Bohdan Triapitsyn <artmore@protonmail.com>
This commit is contained in:
committed by
GitHub
co-authored by
Bohdan Triapitsyn
parent
8647e0c1a4
commit
7a11867a19
@@ -90,10 +90,15 @@ export const createVSCodeGitAPI = (): GitAPI => ({
|
||||
});
|
||||
},
|
||||
|
||||
generateCommitMessage: async (directory: string, files: string[]): Promise<{ message: GeneratedCommitMessage }> => {
|
||||
generateCommitMessage: async (
|
||||
directory: string,
|
||||
files: string[],
|
||||
options?: { zenModel?: string; providerId?: string; modelId?: string }
|
||||
): Promise<{ message: GeneratedCommitMessage }> => {
|
||||
// This requires AI integration - stubbed for now
|
||||
void directory; // Unused for now
|
||||
void files; // Unused for now
|
||||
void options; // Unused for now
|
||||
return {
|
||||
message: {
|
||||
subject: '',
|
||||
@@ -104,12 +109,16 @@ export const createVSCodeGitAPI = (): GitAPI => ({
|
||||
|
||||
generatePullRequestDescription: async (
|
||||
directory: string,
|
||||
payload: { base: string; head: string }
|
||||
payload: { base: string; head: string; context?: string; zenModel?: string; providerId?: string; modelId?: string }
|
||||
): Promise<GeneratedPullRequestDescription> => {
|
||||
return sendBridgeMessage<GeneratedPullRequestDescription>('api:git/pr-description', {
|
||||
directory,
|
||||
base: payload.base,
|
||||
head: payload.head,
|
||||
context: payload.context,
|
||||
zenModel: payload.zenModel,
|
||||
providerId: payload.providerId,
|
||||
modelId: payload.modelId,
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user