@zodic/shared 0.0.107 → 0.0.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/api/index.ts +5 -3
- package/package.json +1 -1
- package/types/scopes/legacy.ts +1 -0
package/app/api/index.ts
CHANGED
|
@@ -27,7 +27,7 @@ import { makeAstrologyApiCall } from './astrology';
|
|
|
27
27
|
const deepseek = (env: BackendBindings) =>
|
|
28
28
|
new OpenAI({
|
|
29
29
|
apiKey: env.DEEPSEEK_API_KEY,
|
|
30
|
-
baseURL: 'https://api.deepseek.com/v1',
|
|
30
|
+
baseURL: 'https://api.deepseek.com/v1',
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
export const Api = (env: BackendBindings) => ({
|
|
@@ -206,6 +206,7 @@ export const Api = (env: BackendBindings) => ({
|
|
|
206
206
|
initImageId = null, // Optional
|
|
207
207
|
initStrength = 0.2, // Default strength for Image-to-Image
|
|
208
208
|
quantity = 3,
|
|
209
|
+
negPrompt = null,
|
|
209
210
|
}: LeonardoGenerateImageParams & {
|
|
210
211
|
initImageId?: string | null;
|
|
211
212
|
initStrength?: number;
|
|
@@ -216,8 +217,9 @@ export const Api = (env: BackendBindings) => ({
|
|
|
216
217
|
alchemy: true,
|
|
217
218
|
};
|
|
218
219
|
|
|
219
|
-
const negativePrompt =
|
|
220
|
-
|
|
220
|
+
const negativePrompt = negPrompt
|
|
221
|
+
? negPrompt
|
|
222
|
+
: 'blurry, boring, dark, low quality, lowres, grainy, distorted, overexposed, oversaturated, flat, rough, noisy, abstract, monochrome, dull, cracked, chipped, uneven, asymmetrical, deformed, pixelated, cartoonish, out of focus, messy, dull lighting, rough texture, unbalanced, low contrast, poorly drawn, faded colors, chaotic, unnatural metals, overly sharp colors, text, writing, letters, symbols, logos, watermark, calligraphy, caption, bad anatomy, malformed hands, extra fingers, missing fingers, poorly drawn face, distorted eyes, crossed eyes, out-of-proportion eyes, deformed limbs, floating limbs, disconnected limbs, mutated hands, elongated neck, unrealistic body proportions, disfigured, extra limbs, unnatural skin texture, melted features, unnatural fingers, poorly rendered hands, blurry face';
|
|
221
223
|
|
|
222
224
|
const endpoint = 'https://cloud.leonardo.ai/api/rest/v1/generations';
|
|
223
225
|
const headers = {
|
package/package.json
CHANGED