# Change OpenAI compatible URL placeholder in edit prediction settings \(\#58771\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/64c55b038f1e676c11bc4a2fdfbc8117f03144ca)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 64c55b038f1e676c11bc4a2fdfbc8117f03144ca

Requested commit: 64c55b038f1e676c11bc4a2fdfbc8117f03144ca

Commit: 64c55b038f1e676c11bc4a2fdfbc8117f03144ca

Tree: 147ce6c6112d142332e169990e57a68bdfa988bc

Author: excited gui

Committer: GitHub

## Message

````
Change OpenAI compatible URL placeholder in edit prediction settings (#58771)

Fixed my PR #58753. 

Change the url placeholder from http://localhost:11434 to
http://localhost:8080/v1/completions to match the URL endpoint in the
[docs](https://zed.dev/docs/ai/edit-prediction)
```json
{
  "edit_predictions": {
    "provider": "open_ai_compatible_api",
    "open_ai_compatible_api": {
      "api_url": "http://localhost:8080/v1/completions",
      "model": "deepseek-coder-6.7b-base",
      "prompt_format": "deepseek_coder",
      "max_output_tokens": 512
    }
  }
}
```
Note: http://localhost:8080/v1/completions/ with an extra / does not
work.


Added the constants OPEN_AI_COMPATIBLE_API_URL_PLACEHOLDER and
OPEN_AI_COMPATIBLE_MODEL_PLACEHOLDER.

### Initial Issue
I noticed that using http://localhost:8080 doesn't work with llama.cpp.
Giving errors like this from (zed: open log):
```
2026-06-06T17:55:39+01:00 ERROR [crates/edit_prediction/src/edit_prediction.rs:2464] custom server error: 404 Not Found - {"error":{"message":"File Not Found","type":"not_found_error","code":404}}
```
After reading the docs above, I found out that I had to add
/v1/completions to the end.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:
- N/A
````

## Parents

- [811fe501a77ffb82c1c1b3d9934ec4e416f853e0](https://git.cafe/gitcafe/zed/commit/811fe501a77ffb82c1c1b3d9934ec4e416f853e0?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/64c55b038f1e676c11bc4a2fdfbc8117f03144ca?format=markdown)
