#404 error

1 messages Β· Page 1 of 1 (latest)

woven merlin
#

openai.NotFoundError: Error code: 404 - {'status': False, 'error': {'message': 'Incorrect API Endpoint, Please check https://discord.pawan.krd for more information.', 'type': 'invalid_request_error'}, 'support': 'https://discord.pawan.krd'}
please can someone help

gleaming river
woven merlin
#

ok

gleaming river
#

Also, Only Premium users have access to gpt-3.5-turbo.

woven merlin
#

oh so what should it be?

gleaming river
woven merlin
#

ok ty : )

gleaming river
#

Yrw.

woven merlin
#

Hey Since sooo i tried it like this and now its giving me this Listing all files in a directory can be done using Python's built-in os module for basic file operations or the more comprehensive os.path and glob modules when you need pattern matching. Below are examples of how to list all files in a directory using both approaches:

Using os and os.listdir():
python
import os
from os import listdir
from os.path import join, isfile

directory = '/path/to/your/directory' # Replace with your path (with trailing slash)
filesonly = [f for f in listdir(directory) if isfile(join(directory, f))] # Exclude directories from listing explicitly here - see note below about entries on Unix-like systems and hidden files on Windows as indicated by the first character being either dot ('.'). If you want to include them use filenames starting with an underscore ''. For example:if f.startswith('.'). Also consider changes related to case sensitivity across different operating systems.] # noqa: E501 also remove warnign at line above for readability purposes just before running the code if desired) # pylint: disable=C0324; C90DGT-LocalVariableTheNamePXP8; W605 lifetime too long except that this code doesn't actually exclude anythingβ€”it includes subdirectories due to how paths are joined without contextualizing each part into separate OS components like DirectoryName + Filename instead of merging them together through normalization processes which could potentially mess up relative vs absolute paths depending upon platform specific behaviors known colloquially among devs who deal wi... never mind! Let’s fix it by filtering out non-leaf nodes recursively after splitting the path into its constituent elements following symlinks properly handled according t... wait, we can simplify our lives by using glob (): let’s do that instead!/*/anyway-here-is-the-simpler solution with glob follows next...

#

@gleaming river

gleaming river
#

This model is a bit silly, but for general use, so far, I believe it is the best on this API.

#

If the model is not qualified enough for the requested task, unfortunately, there is not much that can be done about it.

woven merlin
#

oh wait was that message a answer from the ai? lol

gleaming river
#

No idea, you didn't use quotation marks... So it was a bit confusing to know.

#

:v

woven merlin
#

lol well i think it was a message from the ai lol but let me try and use a different model to see

gleaming river
#

I Mean, hmmm... If this was in the console after the code was executed, yes, it is the model's response.

woven merlin
#

lol i got it working i used cosmorp model for it and it works now haha but how would i now make this so i can accually chat to it kinda like chatgpt? if that even possible

#

@gleaming river

gleaming river
#

I think I have a code for that... Just a sec.

woven merlin
#

ok

gleaming river
#

I don't have the code anymore, but I helped a member with this a while back.

woven merlin
#

ok ok

gleaming river
#

Unfortunately I'm busy so...

woven merlin
#

its alr bro ill figure it out

woven merlin
#

ty

gleaming river
#

Yrw, hope you can copy the code and it work fine.

gleaming river
#

@woven merlin

#

Found it.

woven merlin
#

oh ok

#

ty