intitni / CopilotForXcode

The missing GitHub Copilot, Codeium and ChatGPT Xcode Source Editor Extension
Other
7.34k stars 347 forks source link

[Bug]: Codestral fim #531

Closed pwnified closed 1 week ago

pwnified commented 4 weeks ago

Before Reporting

What happened?

Any reason why Codestral Fim wont work? Seems like a 404 error, but I know that endpoint works. The Chat endpoint works.

How to reproduce the bug.

https://codestral.mistral.ai/v1/fim/completions Model Name: codestral-latest

Screenshot 2024-06-02 at 2 42 26 PM

Screenshot 2024-06-02 at 2 45 35 PM

Screenshot 2024-06-02 at 2 47 30 PM

Relevant log output

No response

macOS version

14.5 (23F79)

Xcode version

Version 15.4 (15F31d)

Copilot for Xcode version

Version 0.33.2 (385)

intitni commented 4 weeks ago

Hello, it's not a chat completions endpoint but an FIM (Fill in the middle) endpoint that works only for code completions with a different request body structure. It's not supported yet since it's the first time I have heard of it.

Please submit a feature request to CustomSuggestionServiceForCopilotForXcode. I will work on it later. Pull requests are also welcomed.

intitni commented 1 week ago

Released in https://github.com/intitni/CustomSuggestionServiceForCopilotForXcode/releases/tag/0.4.0

You will need to setup a custom model (FIM API) to use it.