adjustments
This commit is contained in:
parent
93c37e1ab6
commit
e72f891de5
2 changed files with 39 additions and 2 deletions
37
docs/docs/customize/model-providers/more/morph.mdx
Normal file
37
docs/docs/customize/model-providers/more/morph.mdx
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# Morph
|
||||
|
||||
Morph provides a fast apply model that helps you quickly and accurately apply code changes from chat suggestions to your files. It's optimized for speed and precision when integrating generated code into your existing codebase. You can sign up for Morph's generous free tier [here](https://morphllm.com/dashboard). Then, update your configuration file as follows:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- uses: morphllm/morph-v0
|
||||
with:
|
||||
MORPH_API_KEY: ${{ secrets.MORPH_API_KEY }}
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Morph Fast Apply",
|
||||
"provider": "openai",
|
||||
"model": "morph-v0",
|
||||
"apiKey": "<YOUR_MORPH_API_KEY>",
|
||||
"apiBase": "https://api.morphllm.com/v1/",
|
||||
"roles": ["apply", "chat"],
|
||||
"promptTemplates": {
|
||||
"apply": "<code>{{{ original_code }}}</code>\n<update>{{{ new_code }}}</update>"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ When editing code, Chat and Edit model output often doesn't clearly align with e
|
|||
|
||||
## Recommended Apply models
|
||||
|
||||
We recommend [Relace's Instant Apply model](https://hub.continue.dev/relace/instant-apply) for the fastest Apply experience. You can get an API key [here](https://app.relace.ai/settings/api-keys).
|
||||
We recommend [Morph Fast Apply](https://morphllm.com) or [Relace's Instant Apply model](https://hub.continue.dev/relace/instant-apply) for the fastest Apply experience. You can sign up for Morph's free tier [here](https://morphllm.com/dashboard) or get a Relace API key [here](https://app.relace.ai/settings/api-keys).
|
||||
|
||||
However, most Chat models can also be used for applying code changes. We recommend smaller/cheaper models for the task, such as Claude 3.5 Haiku.
|
||||
|
||||
|
|
@ -42,4 +42,4 @@ models:
|
|||
New: {{{new_code}}}
|
||||
|
||||
Please generate the final code without any markers or explanations.
|
||||
```
|
||||
```
|
||||
Loading…
Add table
Reference in a new issue