diff --git a/docs/docs/customize/model-providers/more/morph.mdx b/docs/docs/customize/model-providers/more/morph.mdx new file mode 100644 index 000000000..707ea5d45 --- /dev/null +++ b/docs/docs/customize/model-providers/more/morph.mdx @@ -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: + + + + ```yaml title="config.yaml" + models: + - uses: morphllm/morph-v0 + with: + MORPH_API_KEY: ${{ secrets.MORPH_API_KEY }} + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "Morph Fast Apply", + "provider": "openai", + "model": "morph-v0", + "apiKey": "", + "apiBase": "https://api.morphllm.com/v1/", + "roles": ["apply", "chat"], + "promptTemplates": { + "apply": "{{{ original_code }}}\n{{{ new_code }}}" + } + } + ] + } + ``` + + + diff --git a/docs/docs/customize/model-roles/apply.mdx b/docs/docs/customize/model-roles/apply.mdx index 040cdaa2e..ee64859fd 100644 --- a/docs/docs/customize/model-roles/apply.mdx +++ b/docs/docs/customize/model-roles/apply.mdx @@ -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. -``` +``` \ No newline at end of file