Skip to content

Commit

Permalink
feat(images-api): implement images api
Browse files Browse the repository at this point in the history
 - https://platform.openai.com/docs/api-reference/images
test for github action
add custom url - DarwinOpenAI(token: String, url: String)
  • Loading branch information
hanrw committed Feb 12, 2024
1 parent 859a95b commit 999d2bd
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,12 @@ fun DarwinOpenAI(token: String): OpenAI = OpenAIApi(
token = token,
engine = Darwin.create()
)
)
)

fun DarwinOpenAI(token: String, url: String): OpenAI = OpenAIApi(
HttpRequester.default(
url = url,
token = token,
engine = Darwin.create()
)
)

0 comments on commit 999d2bd

Please sign in to comment.