diff --git a/docs/docs/customize/model-providers/more/morph.mdx b/docs/docs/customize/model-providers/more/morph.mdx index 710fcccd5..46a9adab3 100644 --- a/docs/docs/customize/model-providers/more/morph.mdx +++ b/docs/docs/customize/model-providers/more/morph.mdx @@ -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: + apiBase: https://api.morphllm.com/v1/ + roles: + - apply + promptTemplates: + apply: "{{{ original_code }}}\n{{{ new_code }}}" ``` @@ -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": "", "apiBase": "https://api.morphllm.com/v1/", - "roles": ["apply", "chat"], + "roles": ["apply"], "promptTemplates": { "apply": "{{{ original_code }}}\n{{{ new_code }}}" } @@ -34,3 +46,67 @@ Morph provides a fast apply model that helps you quickly and accurately apply co ``` + +## Embeddings model + +We recommend configuring **morph-embedding-v2** as your embeddings model. + + + + ```yaml title="config.yaml" + models: + - name: Morph Embeddings + provider: openai + model: morph-embedding-v2 + apiKey: + apiBase: https://api.morphllm.com/v1/ + roles: + - embed + ``` + + + ```json title="config.json" + { + "embeddingsProvider": { + "provider": "openai", + "model": "morph-embedding-v2", + "apiKey": "", + "apiBase": "https://api.morphllm.com/v1/" + } + } + ``` + + + +## Reranking model + +We recommend configuring **morph-rerank-v2** as your reranking model. + + + + ```yaml title="config.yaml" + models: + - name: Morph Reranker + provider: cohere + model: morph-rerank-v2 + apiKey: + apiBase: https://api.morphllm.com/v1/ + roles: + - rerank + ``` + + + ```json title="config.json" + { + "reranker": { + "name": "cohere", + "params": { + "model": "morph-rerank-v2", + "apiKey": "", + "apiBase": "https://api.morphllm.com/v1/" + } + } + } + ``` + +