#404 error
1 messages Β· Page 1 of 1 (latest)
Try adding another Slash to the base URL.
ok
Also, Only Premium users have access to gpt-3.5-turbo.
oh so what should it be?
Use one of the free Models listed at #πππ¨πππ₯π¬
ok ty : )
Yrw.
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
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.
oh wait was that message a answer from the ai? lol
lol well i think it was a message from the ai lol but let me try and use a different model to see
I Mean, hmmm... If this was in the console after the code was executed, yes, it is the model's response.
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
I think I have a code for that... Just a sec.
ok
I don't have the code anymore, but I helped a member with this a while back.
ok ok
Unfortunately I'm busy so...
its alr bro ill figure it out
ty
Yrw, hope you can copy the code and it work fine.