@zodic/shared 0.0.106 → 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 +3 -2
- package/utils/conceptPrompts.ts +3 -5
- package/utils/initImages.ts +2 -2
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
package/types/scopes/legacy.ts
CHANGED
|
@@ -32,6 +32,7 @@ export interface LeonardoGenerateImageParams {
|
|
|
32
32
|
strengthType: 'Low' | 'Mid' | 'High';
|
|
33
33
|
}>;
|
|
34
34
|
quantity?: number;
|
|
35
|
+
negPrompt?: string | null;
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
export type HouseCuspsReport = {
|
|
@@ -217,8 +218,8 @@ export const sizes: Sizes = {
|
|
|
217
218
|
height: 624,
|
|
218
219
|
},
|
|
219
220
|
'post4:5': {
|
|
220
|
-
width:
|
|
221
|
-
height:
|
|
221
|
+
width: 616,
|
|
222
|
+
height: 768,
|
|
222
223
|
},
|
|
223
224
|
'post1.91:1': {
|
|
224
225
|
width: 912,
|
package/utils/conceptPrompts.ts
CHANGED
|
@@ -218,13 +218,11 @@ You are an expert creative writer specializing in crafting intricate and vivid p
|
|
|
218
218
|
`;
|
|
219
219
|
|
|
220
220
|
export const PROMPT_GENERATE_AMULET_LEONARDO = `
|
|
221
|
-
You are an expert creative writer specializing in crafting intricate and vivid prompts for AI image generation. Your task is to create a detailed, high-quality prompt for a symbolic amulet that embodies healing, growth, and protection. The design of the amulet must reflect the symbolic traits of a given zodiac sign combination.
|
|
221
|
+
You are an expert creative writer specializing in crafting intricate and vivid prompts for AI image generation. Your task is to create a detailed, high-quality prompt for a symbolic amulet that embodies healing, growth, and protection. The design of the amulet must reflect the symbolic traits of a given zodiac sign combination, but without directly mentioning zodiac signs or incorporating any animal-based descriptions.
|
|
222
222
|
|
|
223
|
-
Describe the amulet in detail,
|
|
223
|
+
Describe the amulet in exquisite detail, focusing on its materials, structure, symbolic engravings, and artistic patterns. Avoid references to animal figures, replacing them with abstract, elemental, celestial, alchemical, or geometric motifs that convey its protective and transformative essence. Highlight its aura or glow, the emotions it evokes, and how it would be worn or carried in a visually compelling way. Ensure the design elements reflect resilience, inner balance, and renewal while maintaining an artistic and mystical tone.
|
|
224
224
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
Make the prompt start with: "Create an ultra-realistic, 8K resolution, HDR image of an enchanted amulet that embodies protection and growth, glowing with mystical energy and detailed with sacred engravings."
|
|
225
|
+
Include rendering details such as "ultra-realistic," "8K resolution," and "HDR" to guide the AI model. Keep the description concise, under 1500 characters, ensuring it is structured for direct use in Leonardo.ai. Respond with a single descriptive paragraph based on the given zodiac sign combination.
|
|
228
226
|
`;
|
|
229
227
|
|
|
230
228
|
export const PROMPT_GENERATE_LANTERN_LEONARDO = `
|
package/utils/initImages.ts
CHANGED
|
@@ -8,9 +8,9 @@ export const leonardoInitImages: LeonardoInitImages = {
|
|
|
8
8
|
'https://cdn.leonardo.ai/users/b117a933-e5c9-45b2-96aa-4b619c2d74ba/initImages/450076a1-c6bb-4877-8a0b-c0d3ba72fca7.jpg',
|
|
9
9
|
},
|
|
10
10
|
scepter: {
|
|
11
|
-
imageId: '
|
|
11
|
+
imageId: '744169ef-3db4-416d-86dd-9bd814e33432',
|
|
12
12
|
imageUrl:
|
|
13
|
-
'https://cdn.leonardo.ai/users/b117a933-e5c9-45b2-96aa-4b619c2d74ba/initImages/
|
|
13
|
+
'https://cdn.leonardo.ai/users/b117a933-e5c9-45b2-96aa-4b619c2d74ba/initImages/744169ef-3db4-416d-86dd-9bd814e33432.jpg',
|
|
14
14
|
},
|
|
15
15
|
amulet: {
|
|
16
16
|
imageId: '450076a1-c6bb-4877-8a0b-c0d3ba72fca7',
|