fix: disable vox-box item when deploy ollama model
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# Adding a New Language Configuration
|
||||
|
||||
To add a new language configuration, follow these steps:
|
||||
|
||||
1. **Duplicate an Existing Language Directory**
|
||||
|
||||
- Choose any existing language directory that you are familiar with, and duplicate it.
|
||||
- Name the new directory according to the `lang` attribute specified in `lang-config-map.tsx`.
|
||||
|
||||
2. **Create a New `.ts` File in the Current Directory**
|
||||
|
||||
- In the `locales` directory, create a `.ts` file named to align with the new directory.
|
||||
- Copy the contents of the `en-US.ts` file into this new `.ts` file.
|
||||
- Update the following line to match your new language directory:
|
||||
```ts
|
||||
const requireContext = require.context(
|
||||
`./{new-language-directory}`,
|
||||
false,
|
||||
/\.ts$/
|
||||
);
|
||||
```
|
||||
|
||||
3. **Translate Each Attribute Value**
|
||||
|
||||
- Open the `.ts` file in the **new directory**.
|
||||
- Translate the value of each key into your target language.
|
||||
|
||||
4. **Finalize the Configuration**
|
||||
- Review and ensure all translations are complete.
|
||||
- Your new language configuration is now ready for use!
|
||||
@@ -278,7 +278,7 @@ const AdvanceConfig: React.FC<AdvanceConfigProps> = (props) => {
|
||||
{
|
||||
label: 'vox-box',
|
||||
value: backendOptionsMap.voxBox,
|
||||
disabled: false
|
||||
disabled: source === modelSourceMap.ollama_library_value
|
||||
}
|
||||
]}
|
||||
disabled={
|
||||
|
||||
@@ -113,8 +113,8 @@ export const ImageParamsConfig: ParamsSchema[] = [
|
||||
name: 'size',
|
||||
options: [
|
||||
{ label: 'playground.params.custom', value: 'custom', locale: true },
|
||||
{ label: '256x256', value: '256x256' },
|
||||
{ label: '512x512', value: '512x512' },
|
||||
{ label: '768x1024', value: '768x1024' },
|
||||
{ label: '1024x1024', value: '1024x1024' }
|
||||
],
|
||||
description: {
|
||||
|
||||
Reference in New Issue
Block a user