Skip to content

update docs #5941

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 78 additions & 2 deletions docs/docs/customize/model-providers/more/morph.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ Morph provides a fast apply model that helps you quickly and accurately apply co
- uses: morphllm/morph-v0
with:
MORPH_API_KEY: ${{ secrets.MORPH_API_KEY }}
```
or
```yaml title="config.yaml"
- name: Morph Fast Apply
provider: openai
model: morph-v2
apiKey: <YOUR_MORPH_API_KEY>
apiBase: https://api.morphllm.com/v1/
roles:
- apply
promptTemplates:
apply: "<code>{{{ original_code }}}</code>\n<update>{{{ new_code }}}</update>"
```
</TabItem>
<TabItem value="json" label="JSON">
Expand All @@ -21,10 +33,10 @@ Morph provides a fast apply model that helps you quickly and accurately apply co
{
"title": "Morph Fast Apply",
"provider": "openai",
"model": "morph-v0",
"model": "morph-v2",
"apiKey": "<YOUR_MORPH_API_KEY>",
"apiBase": "https://api.morphllm.com/v1/",
"roles": ["apply", "chat"],
"roles": ["apply"],
"promptTemplates": {
"apply": "<code>{{{ original_code }}}</code>\n<update>{{{ new_code }}}</update>"
}
Expand All @@ -34,3 +46,67 @@ Morph provides a fast apply model that helps you quickly and accurately apply co
```
</TabItem>
</Tabs>

## Embeddings model

We recommend configuring **morph-embedding-v2** as your embeddings model.

<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
```yaml title="config.yaml"
models:
- name: Morph Embeddings
provider: openai
model: morph-embedding-v2
apiKey: <YOUR_MORPH_API_KEY>
apiBase: https://api.morphllm.com/v1/
roles:
- embed
```
</TabItem>
<TabItem value="json" label="JSON">
```json title="config.json"
{
"embeddingsProvider": {
"provider": "openai",
"model": "morph-embedding-v2",
"apiKey": "<YOUR_MORPH_API_KEY>",
"apiBase": "https://api.morphllm.com/v1/"
}
}
```
</TabItem>
</Tabs>

## Reranking model

We recommend configuring **morph-rerank-v2** as your reranking model.

<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
```yaml title="config.yaml"
models:
- name: Morph Reranker
provider: cohere
model: morph-rerank-v2
apiKey: <YOUR_MORPH_API_KEY>
apiBase: https://api.morphllm.com/v1/
roles:
- rerank
```
</TabItem>
<TabItem value="json" label="JSON">
```json title="config.json"
{
"reranker": {
"name": "cohere",
"params": {
"model": "morph-rerank-v2",
"apiKey": "<YOUR_MORPH_API_KEY>",
"apiBase": "https://api.morphllm.com/v1/"
}
}
}
```
</TabItem>
</Tabs>
Loading