Skip to content

Commit

Permalink
Add link to docs for openai image generation
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudotensor committed Sep 19, 2024
1 parent 5648aca commit 81cb558
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions openai_server/agent_tools/image_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def main():
print(f"Warning: Model {args.model} not in available models {available_models}. Using default.")
args.model = available_models[0]
elif imagegen_url == "https://api.openai.com/v1":
# https://platform.openai.com/docs/api-reference/images/create
available_models = ['dall-e-2', 'dall-e-3']
if args.model not in available_models:
print(f"Warning: Model {args.model} not in available models {available_models}. Using default.")
Expand Down
2 changes: 1 addition & 1 deletion src/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2e98139c2ae7c83d6b81a5259c50d9bcb87a1e6b"
__version__ = "5648aca5464dcd17e9d73bcedf1f42098dd52306"

0 comments on commit 81cb558

Please sign in to comment.