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

Generate Commit Message With GitLens - Fails with OpenAI-o1-preview model #3793

Open
rohanbalkondekar opened this issue Nov 22, 2024 · 1 comment
Labels
bug Something isn't working triage Needs to be looked at

Comments

@rohanbalkondekar
Copy link

Description

openai:o1-preview model does not support system prompt

[2024-11-22 12:14:19.867] GenerateCommitMessageCommand
Error: Unable to generate commit message: (OpenAI:400) Unsupported value: 'messages[0].role' does not support 'system' with this model.
[2024-11-22 12:15:56.611] GenerateCommitMessageCommand
Error: Unable to generate commit message: (OpenAI:400) Unsupported value: 'messages[0].role' does not support 'system' with this model.
[2024-11-22 12:16:08.434] getLocalWorkspaceData

GitLens Version

v16.0.2

VS Code Version

Version: 1.95.3
Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813
Date: 2024-11-13T14:50:04.152Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Linux x64 6.8.0-49-generic

Git Version

git version 2.34.1

Logs, Screenshots, Screen Captures, etc

[2024-11-22 12:14:19.867] GenerateCommitMessageCommand
Error: Unable to generate commit message: (OpenAI:400) Unsupported value: 'messages[0].role' does not support 'system' with this model.
[2024-11-22 12:15:56.611] GenerateCommitMessageCommand
Error: Unable to generate commit message: (OpenAI:400) Unsupported value: 'messages[0].role' does not support 'system' with this model.
[2024-11-22 12:16:08.434] getLocalWorkspaceData
EntryNotFound (FileSystemError): Error: ENOENT: no such file or directory, open '/home/rohan/.gitkraken/workspaces/workspaces.json'

@rohanbalkondekar rohanbalkondekar added bug Something isn't working triage Needs to be looked at labels Nov 22, 2024
@chomg88
Copy link

chomg88 commented Dec 11, 2024

[2024-12-11 06:26:00.393] GenerateCommitMessageCommand
Error: Unable to generate commit message: (OpenAI:400) Unsupported value: 'messages[0].role' does not support 'system' with this model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Needs to be looked at
Projects
None yet
Development

No branches or pull requests

2 participants