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

AI Commit - issue #476

Closed
minzdrav opened this issue Sep 16, 2024 · 6 comments
Closed

AI Commit - issue #476

minzdrav opened this issue Sep 16, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@minzdrav
Copy link

Hi @love-linger
Dev build works just fine. Today I've updated to the actual release and I see the following error:

Failed to generate commit message: System.InvalidOperationException: Misused header name, 'Content-Type'. Make sure request headers are used with HttpRequestMessage, response headers with HttpResponseMessage, and content headers with HttpContent objects.
   at System.Net.Http.Headers.HttpHeaders.GetHeaderDescriptor(String) + 0xbf
   at SourceGit.Models.OpenAI.Chat(String prompt, String question, CancellationToken cancellation) + 0x1b1
   at SourceGit.Commands.GenerateCommitMessage.GenerateChangeSummary(Change change) + 0x367
   at SourceGit.Commands.GenerateCommitMessage.Result() + 0xac
@love-linger love-linger self-assigned this Sep 16, 2024
@love-linger love-linger added the bug Something isn't working label Sep 16, 2024
@love-linger
Copy link
Collaborator

Solved. Perhaps I need to release an hot-fix version.

@love-linger
Copy link
Collaborator

Done. You can upgrade to 8.30.1 now.

@srn271
Copy link

srn271 commented Sep 17, 2024

@love-linger Can you create a winget PR for this release? 🙏🏼

@love-linger
Copy link
Collaborator

it's already 8.30.1

@love-linger
Copy link
Collaborator

See: https://github.com/microsoft/winget-pkgs/blob/master/manifests/s/sourcegit-scm/SourceGit/8.30/sourcegit-scm.SourceGit.installer.yaml

# Created using wingetcreate 1.6.5.0
# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.6.0.schema.json

PackageIdentifier: sourcegit-scm.SourceGit
PackageVersion: "8.30"
InstallerType: zip
NestedInstallerType: portable
NestedInstallerFiles:
- RelativeFilePath: SourceGit\SourceGit.exe
Installers:
- Architecture: arm64
  InstallerUrl: https://github.com/sourcegit-scm/sourcegit/releases/download/v8.30.1/sourcegit_8.30.1.win-arm64.zip
  InstallerSha256: A8BEE0C1428476411787BE3EFD5426301A0A559C2924238B6073DF91636C5180
- Architecture: x64
  InstallerUrl: https://github.com/sourcegit-scm/sourcegit/releases/download/v8.30.1/sourcegit_8.30.1.win-x64.zip
  InstallerSha256: C32ECC59ABF5874D27EBC79A9C0083368D31C4FF8B377CE3292D4B7B1AB72CBB
ManifestType: installer
ManifestVersion: 1.6.0

@srn271
Copy link

srn271 commented Sep 17, 2024

My bad 😅 I couldn't find a PR with the given patch version in the winget-pkgs repo.
And i didn't know the patch version is not displayed in winget as well. Thank you for the clarification.

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

No branches or pull requests

3 participants