incomestreamsurfer / chatgptassistantautoblogger Goto Github PK
View Code? Open in Web Editor NEWThis autoblogger uses the GPT assistant's API to autoblog on ecommerce websites
This autoblogger uses the GPT assistant's API to autoblog on ecommerce websites
Hey ,
I am getting the following after watching your youtube? Haven't changed any files other than the API code and the XML's and Txt's
Any recommendation? ( i installed and reinstalled a few times with clean files and its the same )
C:\Users\xxxx\Desktop\AutoBlogger\chatpgtblogger>py testing3.py
Traceback (most recent call last):
File "C:\Users\xxxx\Desktop\AutoBlogger\chatpgtblogger\testing3.py", line 26, in
assistant = client.beta.assistants.create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\openai\resources\beta\assistants\assistants.py", line 108, in create
return self._post(
^^^^^^^^^^^
File "C:\Users\xxxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\openai_base_client.py", line 1200, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\openai_base_client.py", line 889, in request
return self._request(
^^^^^^^^^^^^^^
File "C:\Users\xxxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\openai_base_client.py", line 980, in _request
raise self._make_status_error_from_response(err.response) from None
openai.BadRequestError: Error code: 400 - {'error': {'message': 'Failed to index file: Unsupported file file-sAB6UDfZY0Uc7554S2y5YIsJ type: text/csv error_code: unhandled_mimetype', 'type': 'invalid_request_error', 'param': None, 'code': None}}
you said you would if requested so I figured I might as well request it ;)
https://www.youtube.com/watch?v=GTi1rL8vs0w
This looks interesting. You can expand the number of people that will use this by adding a license. Ideally, a MIT or Apache, or BSD license. It'd be great if you could add a license to the repo.
First of all, let me say that this is awesome work!
I encountered an issue with the autoblogger running on the latest OpenAI API.
The code it fails on
print("Creating OpenAI Assistant...")
assistant = client.beta.assistants.create(
name="Content Creation Assistant",
model="gpt-4-turbo-preview",
instructions=f"",
tools=[{"type": "retrieval"}, {"type": "code_interpreter"}],
file_ids=[internal_links_file_id, content_plan_file_id, brand_plan_file_id, images_file_id]
)
It gives me the following error:
TypeError: Assistants.create() got an unexpected keyword argument 'file_ids'
It appears that the API was changed in version 1.21.0, and the file_ids
parameter is no longer supported in the "Create assistant" method.
This is marked as legacy in the documentation:
API Reference Legacy: Create Assistant V1
API Reference Current: Create Assistant
As a workaround, downgrading to version 1.20.0 resolves the issue.
@ 10:45 of your video installation.
When test running: python 2mentest.py
File "2mentest.py", line 32
print(f"URL: {entry[0]}\nImage URL: {entry[1]}\nTitle: {entry[2]}\n")
SyntaxError: invalid syntax
hello how do you create the file hello How do you create the file processed_keywords_with_images.csv ?
best regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.