Skip to content

Commit

Permalink
updates for test
Browse files Browse the repository at this point in the history
  • Loading branch information
64bit committed Aug 25, 2023
1 parent b5f61d8 commit d8b1e1b
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions stabilityai/src/types/spec_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,24 +170,22 @@ pub struct TextToImageRequestBody {
/// Given a text prompt with the text `A lighthouse on a cliff` and a weight
/// of `0.5`, it would be represented as:
///
/// ```
/// text_prompts[0][text]: "A lighthouse on a cliff"
/// text_prompts[0][weight]: 0.5
/// ```
/// `text_prompts[0][text]: "A lighthouse on a cliff"`
///
/// `text_prompts[0][weight]: 0.5`
///
///
/// To add another prompt to that request simply provide the values
/// under a new `index`:
///
///
/// `text_prompts[0][text]: "A lighthouse on a cliff"`
///
/// `text_prompts[0][weight]: 0.5`
///
/// ```
/// text_prompts[0][text]: "A lighthouse on a cliff"
/// text_prompts[0][weight]: 0.5
/// `text_prompts[1][text]: "land, ground, dirt, grass"`
///
/// text_prompts[1][text]: "land, ground, dirt, grass"
/// text_prompts[1][weight]: -0.9
/// ```
/// `text_prompts[1][weight]: -0.9`
#[serde(flatten)]
pub text_prompts: TextPrompts,

Expand Down

0 comments on commit d8b1e1b

Please sign in to comment.