Skip to content

Commit 880c527

Browse files
committed
openai test fix
1 parent 9f9a6ec commit 880c527

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

golem-embed/embed-openai/src/client.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ fn parse_response<T: DeserializeOwned + Debug>(response: Response) -> Result<T,
7070
/// OpenAI allows only allows float and base64 as output formats.
7171
#[derive(Debug, Deserialize, Serialize, Clone, PartialEq)]
7272
pub enum EncodingFormat {
73+
#[serde(rename = "float")]
7374
Float,
75+
#[serde(rename = "base64")]
7476
Base64,
7577
}
7678

0 commit comments

Comments
 (0)