Repository: ragapp/ragapp
File: src/ragapp/admin-ui/sections/config/providers/ollama.tsx (TypeScript)

Code before:
            <FormDescription>
              Timeout in seconds for Ollama API requests.
            </FormDescription>
            <FormMessage />
          </FormItem>
        )}
      />
      {isLoading ? (
        <Loader2 className="h-4 w-4 animate-spin" />
      ) : isError ? (
        <FormMessage>
          Could not fetch Ollama models. Make sure the Ollama base URL is
          accessible with RAGapp.
        </FormMessage>
      ) : (
        <>
          <ModelForm
            form={form}
            title="LLM Model"
            description="Select an LLM model to use for language generation."
            defaultValue={defaultValues.model}
            supportedModels={getLLMModels(models ?? [])}
          />
          <ModelForm
            form={form}
            name="embedding_model"
            title="Embedding Model"
            description="Select an embedding model for text embeddings."
            defaultValue={defaultValues.embedding_model}
            supportedModels={getEmbeddingModels(models ?? [])}
          />
        </>
      )}
    </>
  );
};


Review comment (suggestion):
re-add the embedding model check, but change text to:
```
One of the embedding models <i>${embeddingModels.join(",")}</i> is required. Please pull an Ollama embedding model (e.g. 'nomic-embed-text') from &nbsp;
          <a href="https://ollama.com/library" target="_blank" rel="noreferrer">
            https://ollama.com/library
          </a>
```
```

Code after:
            </FormControl>
            <FormDescription>
              Timeout in seconds for Ollama API requests.
            </FormDescription>
            <FormMessage />
          </FormItem>
        )}
      />
      {isLoading ? (
        <Loader2 className="h-4 w-4 animate-spin" />
      ) : isError ? (
        <FormMessage>
          Could not fetch Ollama models. Make sure the Ollama base URL is
          accessible with RAGapp.
        </FormMessage>
      ) : llmModels.length === 0 ? (
        <FormMessage>
          There is no LLM model available using Ollama. <br />
          Please pull a Ollama LLM model from &nbsp;
          <a href="https://ollama.com/library" target="_blank" rel="noreferrer">
            https://ollama.com/library
          </a>
        </FormMessage>
      ) : embeddingModelsAvailable.length === 0 ? (
        <>
          <ModelForm
            form={form}
            defaultValue={defaultValues.model}
            supportedModels={llmModels}
          />
          <FormMessage>
            One of the embedding models <i>{embeddingModels.join(", ")}</i> is
            required. Please pull an Ollama embedding model (e.g.,{" "}
            <i>nomic-embed-text</i>) from &nbsp;
            <a
              href="https://ollama.com/library"
              target="_blank"
              rel="noreferrer"
            >
              https://ollama.com/library
            </a>
          </FormMessage>
        </>
      ) : (
        <>
          <ModelForm
            form={form}
            defaultValue={defaultValues.model}
            supportedModels={llmModels}
          />
          <ModelForm