[3.2][3.3][RC] AI Labs with Midjourney, FaceSwap, PixVerse, Pika, Claude, ChatGPT, Gemini, DALL-E, Stable Diffusion

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Ideas Centre
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
nou nou
Registered User
Posts: 679
Joined: Sat Oct 29, 2016 8:08 pm

Re: [3.2][3.3][RC] AI Labs with Midjourney, Pika, Claude, ChatGPT, DALL-E, Gemini, Gemini Vision and Stable Diffusion

Post by nou nou »

Oh yaaaay! Fantastic!
User avatar
privet.fun
Registered User
Posts: 118
Joined: Sun May 07, 2023 8:46 pm
Location: https://privet.fun

Re: [3.2][3.3][RC] AI Labs with Midjourney, FaceSwap, PixVerse, Pika, Claude, ChatGPT, Gemini, DALL-E, Stable Diffusion

Post by privet.fun »

Please see v 2.0.0 June 30, 2024 release details at viewtopic.php?p=15958484#p15958484 or https://github.com/privet-fun/phpbb_ail ... #changelog.

I played quite a bit with FaceSwap (free version) and really liked it. Depending on your community's interests, this could be a very popular bot.

PixVerse is definitely better than Pika. I can see why both are free on Discord since they both require multiple rounds to get decent results. Still, PixVerse has a leg up here and also provides the ability to generate four videos from a single prompt.

Stable Diffusion v3 is an odd one. You can tell it follows prompts much better than older versions, but the results it produces are often very poor. I suspect they will have to improve the models considerably before this can be of any use. It does pretty decent job in image-to-image generations, see this example, I'd imagine fiddling with --strength parameter you can figure out how to get desired results.
Lord Phobos
Registered User
Posts: 935
Joined: Tue May 18, 2004 11:41 pm

Re: [3.2][3.3][RC] AI Labs with Midjourney, FaceSwap, PixVerse, Pika, Claude, ChatGPT, Gemini, DALL-E, Stable Diffusion

Post by Lord Phobos »

Thanks a lot, I will try it and PixVerse asap.
I'm VERY disappointed in Pika.

Nice job!
User avatar
nou nou
Registered User
Posts: 679
Joined: Sat Oct 29, 2016 8:08 pm

Re: [3.2][3.3][RC] AI Labs with Midjourney, FaceSwap, PixVerse, Pika, Claude, ChatGPT, Gemini, DALL-E, Stable Diffusion

Post by nou nou »

Update!

Took me a bit of time, I've been busy with other things...

Everything works! I had some difficulty setting up FaceSwap because I kept getting these messages:

Code: Select all

Configuration not found for channel <channel number>, to create POST v1/faceswap/account/<channel number>
until privet.fun pointed out that in the new api, certain data gets stored to your account by inputting the appropriate tokens and channels at the bottom of this page (pretty obscure because there is no account page on useapi AFAICT):

https://useapi.net/docs/api-faceswap-v1 ... nt-channel

After that everything went really well!

Having a lot of fun with MemeFace which is also the only one that gave me this message:

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/ext/privet/ailabs/event/listener.php on line 222: get_headers(<mywebsite>/ailabs/pixverse_meme_face?job_id=534&amp;sid=ba2f71ad5445b89236d4499af95fb5ee): failed to open stream: HTTP request failed!
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 1813: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3035)
...but this only happened once so I'm calling that a random glitch for now.

Odd one with this online image (but I don't think it has anything to do with the extension) is that this prompt:

Code: Select all

[smention u=<id>]PixVerse_MemeFace[/smention] https://rockcelebrities.net/wp-content/uploads/2021/04/keith-richards-immortal-2021.jpg sitting on the beach having a beer
causes this error:

Code: Select all

Only images in PNG/JPEG/JPG format are accepted.
And lastly I had some of the newly generated images and videos disappear from the CDN links because I hadn't set up the additional channels in the discord_cdn bot yet. It's easy enough to figure out by running the dead image links in a browser tab where the extension gives a nice error message that mentions the channel id.

What would be excellent is if the extension were able to give that error message in some error log - but that's a minor thing.

A tiny request for the next version - the {info} tag now includes links to useapi pages which may be useful for admins and devs but not so much for users. Could that info be a separate tag please? I'd like to keep the actual available commands of course (like for Midjourney) but not the useapi links...

Thank you!
User avatar
John Rambo
Registered User
Posts: 84
Joined: Tue Jun 18, 2013 8:46 pm

Re: [3.2][3.3][RC] AI Labs with Midjourney, FaceSwap, PixVerse, Pika, Claude, ChatGPT, Gemini, DALL-E, Stable Diffusion

Post by John Rambo »

:o :o :shock: download and test mu forum.
User avatar
privet.fun
Registered User
Posts: 118
Joined: Sun May 07, 2023 8:46 pm
Location: https://privet.fun

Re: [3.2][3.3][RC] AI Labs with Midjourney, FaceSwap, PixVerse, Pika, Claude, ChatGPT, Gemini, DALL-E, Stable Diffusion

Post by privet.fun »

I do recall seeing "Cannot modify header information - headers already sent" in the past.
I checked my logs and don't see it there, but I will keep an eye on it.

If you save https://rockcelebrities.net/wp-content/ ... l-2021.jpg locally and look at the content, you will see it is actually a WEBP file (not PNG/JPEG/JPG). I had no idea that only PNG, JPEG, and JPG formats were supported. Perhaps I can add code to verify the file format before calling the API, but this probably would not be any better than the API giving you the same error.

There also seems to be an issue with the actual API as it is not failing the request properly. I'll have to investigate and probably report a bug.

You're right, it's easy to forget to add new channels to the Discord CDN proxy. Currently, it will return a 400 status code with a message explaining what's wrong. See: https://github.com/privet-fun/phpbb_ail ... n.php#L121. In the browser, it will look like a broken link, so you can kind of guess what's going on. If you look at the Dev Tools in the browser under the Network tab, you will see a bunch of 400 responses and can see the actual errors as well. I'm not really sure how to do it better, so I'm open to all suggestions. I initially wanted to pull a list of all channels from the bot configs but later realized that now I'm storing all the configuration on the API side, so that will not work.
nou nou wrote: Sat Jul 06, 2024 8:44 am A tiny request for the next version - the {info} tag now includes links to useapi pages, which may be useful for admins and devs but not so much for users. Could that info be a separate tag, please? I'd like to keep the actual available commands of course (like for Midjourney) but not the useapi links...
Good point. I mostly added it for my own purposes as I was getting lost between all the new bots and also wanted to make sure that the correct API method is called (e.g., /animate vs /create) and to provide a help link with details on what parameters are used, etc. I'll see if this can be made customizable.

Most of those Discord bots (excluding Midjourney) lack good documentation or examples on how to use them. Often they post documentation directly on Discord, making it inaccessible without a Discord account whereas the API typically has better documentation. Here's a good example: https://useapi.net/docs/api-faceswap-v1 ... quest-body. However this is probably a bit too technical to show to users (to most users anyway).

To address this I had to create an entire section on my forum https://privet.fun/viewforum.php?f=43, where I created one topic per bot with all the documentation and examples. Each bot also has a link in the signature section to the same topic. It feels like a lot of work honestly but without good help it would not be of much use.

I'm currently looking to add a music generation bot to the mix. I asked the useapi folks if they would consider adding one. It would be nice to keep using the same API for all my needs, but I'm looking for other options too.

Thank you for all the notes, I really value your input!
User avatar
John Rambo
Registered User
Posts: 84
Joined: Tue Jun 18, 2013 8:46 pm

Re: [3.2][3.3][RC] AI Labs with Midjourney, FaceSwap, PixVerse, Pika, Claude, ChatGPT, Gemini, DALL-E, Stable Diffusion

Post by John Rambo »

I installed your extension on a free hosting, but the bot doesn't respond, here are the images of the post and of acp, could it be something that needs to be set on the hosting that hosts me? Since it is free, are there any limitations?
AI-Labs-Edit-Configuration.png
Raccontami-una-barzelletta-yourdomain-com.png
You do not have the required permissions to view the files attached to this post.
User avatar
privet.fun
Registered User
Posts: 118
Joined: Sun May 07, 2023 8:46 pm
Location: https://privet.fun

Re: [3.2][3.3][RC] AI Labs with Midjourney, FaceSwap, PixVerse, Pika, Claude, ChatGPT, Gemini, DALL-E, Stable Diffusion

Post by privet.fun »

John Rambo wrote: Sun Jul 07, 2024 10:05 am I installed your extension on a free hosting, but the bot doesn't respond, here are the images of the post and of acp, could it be something that needs to be set on the hosting that hosts me? Since it is free, are there any limitations?
Not sure about the free hosting limitations, you need to clarify this with the support team of that hosting service.
Did you try https://github.com/privet-fun/phpbb_ail ... leshooting?
You should be able to identify the actual issue if you follow that.
To my knowledge, there are about a dozen forums running this extension, the most common issue is the callback being blocked by the host or another extension.

PS
I see you set 'debug: true' - what do you see in the cURL logs and what AI logs show you?
User avatar
John Rambo
Registered User
Posts: 84
Joined: Tue Jun 18, 2013 8:46 pm

Re: [3.2][3.3][RC] AI Labs with Midjourney, FaceSwap, PixVerse, Pika, Claude, ChatGPT, Gemini, DALL-E, Stable Diffusion

Post by John Rambo »

here is the image, as you can see in the log alone the date and time...
yourdomain-com-•-AI-Labs-Log.png
You do not have the required permissions to view the files attached to this post.
User avatar
privet.fun
Registered User
Posts: 118
Joined: Sun May 07, 2023 8:46 pm
Location: https://privet.fun

Re: [3.2][3.3][RC] AI Labs with Midjourney, FaceSwap, PixVerse, Pika, Claude, ChatGPT, Gemini, DALL-E, Stable Diffusion

Post by privet.fun »

John Rambo wrote: Sun Jul 07, 2024 7:11 pm here is the image, as you can see in the log alone the date and time...yourdomain-com-•-AI-Labs-Log.png
So plugin is working, which is a good start :)
What's in cURL logs and server logs?
Can you open Bot URL (test) on configuration page?
User avatar
privet.fun
Registered User
Posts: 118
Joined: Sun May 07, 2023 8:46 pm
Location: https://privet.fun

Re: [3.2][3.3][RC] AI Labs with Midjourney, FaceSwap, PixVerse, Pika, Claude, ChatGPT, Gemini, DALL-E, Stable Diffusion

Post by privet.fun »

I wonder if that free board not even allowing cURL?
User avatar
John Rambo
Registered User
Posts: 84
Joined: Tue Jun 18, 2013 8:46 pm

Re: [3.2][3.3][RC] AI Labs with Midjourney, FaceSwap, PixVerse, Pika, Claude, ChatGPT, Gemini, DALL-E, Stable Diffusion

Post by John Rambo »

ADDRESSES ACCESSIBLE WITHOUT LIMITATION (WHITELIST)
in the free hosting that hosts me I have access to the list of sites (Server to Server Connections) and in the list I also see *.openai.com
Here is a screenshot
AlterVista-Spazio-web-gratis.png


Edit: Each application installed in your web space has the possibility of establishing http connections to the outside using the php fsockopen() function or the cURL libraries.

As far as I know, for external communications, the free hosting that currently hosts me supports: fsockopen() and cURL
You do not have the required permissions to view the files attached to this post.
User avatar
privet.fun
Registered User
Posts: 118
Joined: Sun May 07, 2023 8:46 pm
Location: https://privet.fun

Re: [3.2][3.3][RC] AI Labs with Midjourney, FaceSwap, PixVerse, Pika, Claude, ChatGPT, Gemini, DALL-E, Stable Diffusion

Post by privet.fun »

I replied to your PM, issues seems to be with callback url returning 404.
This could be due to https config, board config or perhaps something else.
User avatar
John Rambo
Registered User
Posts: 84
Joined: Tue Jun 18, 2013 8:46 pm

Re: [3.2][3.3][RC] AI Labs with Midjourney, FaceSwap, PixVerse, Pika, Claude, ChatGPT, Gemini, DALL-E, Stable Diffusion

Post by John Rambo »

Yes, I read it in the pm....yes I agree there is something that prevents correct functioning, I will try to understand what. in the meantime I'll give it a try by removing the community folder, installing phpBB locally and testing it there too.

Thanks for the support great extension.
User avatar
John Rambo
Registered User
Posts: 84
Joined: Tue Jun 18, 2013 8:46 pm

Re: [3.2][3.3][RC] AI Labs with Midjourney, FaceSwap, PixVerse, Pika, Claude, ChatGPT, Gemini, DALL-E, Stable Diffusion

Post by John Rambo »

I also installed your extension locally, but it seems like it doesn't want to work for me, here's what the log file says:
:arrow: if I go to the bot's response page it tells me this, (Processing job 0"job_id not provided")

LOG:

Code: Select all

{
  "start": "2024-07-08 02:15:42",
  "history": [],
  "request.json": {
    "model": "gpt-4o",
    "messages": [
      {
        "role": "user",
        "content": "cosa accade nei vulcani?"
      }
    ],
    "temperature": 0.9,
    "frequency_penalty": 0,
    "presence_penalty": 0.6
  },
  "response": {
    "error": {
      "message": "The model `gpt-4o` does not exist or you do not have access to it.",
      "type": "invalid_request_error",
      "param": null,
      "code": "model_not_found"
    }
  },
  "response.codes": [
    404
  ],
  "finish": "2024-07-08 02:15:43"
}
IT LOOKS LIKE THERE IS AN ERROR IN THE MODEL: "message": "The model `gpt-4o` does not exist or you do not have access to it.",

Return to “Extensions in Development”