diff-apply

10
11
llama
by
syntheticlab
Other
OTHER
New
10 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
Unknown
Mobile
Laptop
Server
Quick Summary

`diff-apply` is a small, fast model to apply search-and-replace style diffs to code.

Code Examples

text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}
text
This edit is invalid; please fix it. The search string does not match perfectly with the file contents.
Respond only with JSON, and only with the edit JSON, not the original file.
If the edit is ambiguous, respond with null.
{
  "file": "the-underlying-file",
  "edit": {
    "type": "diff",
    "search": "the-search-string",
    "replace": "the-replace-string",
  }
}

Deploy This Model

Production-ready deployment in minutes

Together.ai

Instant API access to this model

Fastest API

Production-ready inference API. Start free, scale to millions.

Try Free API

Replicate

One-click model deployment

Easiest Setup

Run models in the cloud with simple API. No DevOps required.

Deploy Now

Disclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.