Skip to content

Commit

Permalink
Fix image reference url
Browse files Browse the repository at this point in the history
  • Loading branch information
RikudouSage committed Nov 24, 2024
1 parent 668acda commit 32a9b30
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/app/services/horde-repo-data.service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Injectable} from '@angular/core';
import {CacheService} from "./cache.service";
import {HttpClient} from "@angular/common/http";
import {catchError, from, map, Observable, of, switchMap, tap, zip} from "rxjs";
import {from, map, Observable, of, switchMap, tap, zip} from "rxjs";
import {ModelConfigurations} from "../types/sd-repo/model-configuration";
import {CategoriesResponse, EnrichedPromptStyle, PromptStyles} from "../types/sd-repo/prompt-style";
import {mergeDeep} from "../helper/merge-deep";
Expand Down Expand Up @@ -35,21 +35,12 @@ export class HordeRepoDataService {
return of(cacheItem.value!);
}

return this.httpClient.get<ModelConfigurations>('https://raw.githubusercontent.com/Haidra-Org/AI-Horde-image-model-reference/refs/heads/flux/stable_diffusion.json').pipe(
return this.httpClient.get<ModelConfigurations>('https://raw.githubusercontent.com/Haidra-Org/AI-Horde-image-model-reference/main/stable_diffusion.json').pipe(
tap(result => {
cacheItem.value = result;
cacheItem.expiresAfter(24 * 60 * 60)
this.cache.save(cacheItem);
}),
catchError(() => {
return this.httpClient.get<ModelConfigurations>('https://raw.githubusercontent.com/Haidra-Org/AI-Horde-image-model-reference/main/stable_diffusion.json').pipe(
tap(result => {
cacheItem.value = result;
cacheItem.expiresAfter(24 * 60 * 60)
this.cache.save(cacheItem);
}),
);
}),
);
}),
);
Expand Down

0 comments on commit 32a9b30

Please sign in to comment.