Python Code Needs to be Converted into GPT Actions that are located at OPENAI - 23/01/2024 23:51 EST

  • Tình trạng: Closed
  • Giải thưởng: $40
  • Các bài thi đã nhận: 5
  • Người chiến thắng: achyuttiwari22

Tóm tắt cuộc thi

I'm looking for a skilled coder who can transform our existing Python code(attached below) into a schema and GPT's actions. To be Clear this code uses the OPEN_AI API. However, it does not require a API Key because it is a GPTs that is hosted by the main AI company "OPEN AI" at https://chat.openai.com/ SEE CODE ATTACHED below that needs to be converted. This transformation aims to enable all processing and functions to be performed using the GPT and its Actions feature, I think any Endpoint or API action can be utilized and the assistants can have the ability to call tools as well. I think OPEN Ai takes my instructions in the first text box as input then like the example of a web apis it delivers client requests and returns responses via JSON. Each Request response cycle is an "API call" The API call consists of a server endpoint URL and a request method. Usually through HTTP. So this is area of detrmining the coding that I need help with. For example, "GET/weather HTTP/2" You probably need to look at the so called Cookbook published by OPEN AI in order to know how to take the responses you get from a call to the ChatGPT model and then https://cookbook.openai.com/examples/how_to_call_functions_with_chat_models the GPTs Specs to understand how to do it. You may have to implement forcing it to execute a function as it could lose attention or hallucinate. Use "# in this cell we force the model to use get_n_day_weather_forecast
messages = []
messages.append({"role": "system", "content": "Don't make assumptions about what values to plug into functions. Ask for clarification if a user request is ambiguous."})
messages.append({"role": "user", "content": "Give me a weather report for Toronto, Canada."})
chat_response = chat_completion_request(
messages, tools=tools, tool_choice={"type": "function", "function": {"name": "get_n_day_weather_forecast"}}
)
chat_response.json()["choices"][0]["message"]" Then you may have to include schema instruction on how to execute functions whose inputs are model-generated, and use this to implement an agent that can answer questions for us about the output. In the functionality we need for this project the ai will 1. Generate 3 "working theories" on which is the best response to provide the user. That particular output should have three labeled options, an explorations and description of each of the three options. The last output then becomes then input for the grading and ranking step. The input can be the previous output with a prompt for the agent to answer questions about the number rank and criteria grades for the immediate prior output. Then it gets complex but the lowest two are ignored and the Agent is asked to Explore the winning idea maybe include an executive summary. The next step the Agent is asked to generate two more competing ideas. Then a loop occurs because we are repeating the print all three descriptions of the 3 competing ideas. The repeat of the step involving grading also occurs so that you end up with ranked output and scores for each of the proposed solution to the users problem. This looping occurs as programmed a minimum of 5 times. After the loop is complete you have one winning output.
The final step is printing an Executive summary of the winning idea and stating the argument then stating the counter argument to the solution and why it is in fact inferior. A sum up of the pros and cons if you please. This is all explained in the cookbook and an example if given of "Chinook sample database." See that example here https://cookbook.openai.com/examples/how_to_call_functions_with_chat_modelsi . Also, Go here https://platform.openai.com/docs/actions/introduction The work must result in a GPT. So all the configuration will be texted to me. I will upload the configuration, into the text boxes of the GPT configurations and confirm that it works in the GPTs store and then pay and likely a tip. NOTE I do not want an api, I am not needing the function calls to go outside the GPT.

The OPENAI website says to officially make a GPT you must do this: To build a GPT with an action, it is important to understand the end-to-end flow.

Create a GPT in the ChatGPT UI(DO NOT CREATE A UI, OPEN AI provides the GUI)

Manually configure or use the GPT builder to create a GPT
Identify the API(s) you want to use
Go to the "Configure" tab in the GPT editor and select "Create new action"

You will be presented with 3 main options: selecting the authentication schema for the action, inputting the schema itself, and setting the privacy policy URL
The Schema follows the OpenAI API specification format (not to be confused with requiring a Api Key, that is only needed in hosting an Assistant for others to use on your own website and your charged per usage)
Fill in the details for the schema, authentication.

GPTs ask the user for their state problem. With that problem it goes into a series of steps.


Step 1: Generate Initial Answers

Description: Generate three potential answers to the user's stated problem.
Implementation: Use the GPT model to propose three distinct solutions based on the initial problem statement.
Step 2: Evaluate and Rank Answers

Description: Evaluate each of the three answers based on five valid criteria such as cost, ingenuity, feasibility, etc., and rank them.
Implementation: Apply the GPT model to assess each solution against the criteria and provide a ranking based on the overall score.
Step 3: Explore Top Answer

Description: Focus on the highest-scoring answer from Step 2. Explore this concept in detail and provide a summary of its pros and cons.
Implementation: Use the GPT model to delve deeper into the best solution, highlighting its advantages and potential drawbacks.
Step 4: Generate Competing Answers and Explore

Description: Generate two new competing answers. Explore all three current solutions (the winner from Step 3 and the two new ideas) in detail and definition.
Implementation: The GPT model generates two additional solutions and then provides a detailed analysis and description of all three current options.
Step 5: Second Evaluation and Ranking

Description: Repeat the grading and ranking process, similar to Step 2, for the three current solutions.
Implementation: The GPT model re-evaluates all three solutions based on the same criteria and ranks them.
Loop Logic: If necessary, the process from Step 4 and Step 5 can be repeated, iterating through the generation of new solutions and re-evaluation to refine the ideas further.

Final Step: Executive Summary and Counterargument

Description: Provide an executive summary of the winning idea from the final iteration and also articulate a cutting criticism or a counterargument against it.
Implementation: The GPT model synthesizes an executive summary of the top solution and develops a cogent counterargument to present an alternative perspective.
This revised TOT strategy ensures a thorough and dynamic approach to problem-solving, where ideas are not only generated and evaluated but also refined and critically analyzed through iterative loops. The final step ensures that the selected idea is both well-understood and its potential weaknesses are considered.
Key Responsibilities:
- Use GPT to perform text generation and data processing
- Ensure machine learning principles are effectively integrated
- Validate that all computations are handled by the GPT and the Actions feature

Ideal Capabilities:

- Strong expertise with Python and GPT (Generative Pretrained Transformer)
- Extensive experience with data processing, machine learning, and text generation
- Proficiency in developing and working with schemas

Tone of the Generated Text:

The text generated by the GPT should bear a professional and formal tone.

Data Handling Instructions:

The project requires specific formatting for certain data. Please ensure these formatting requirements are met during the text generation process.

This task requires a developer with a keen eye for refinement and precision. Your expertise will play a crucial role in the success of the project's goal to shift computation responsibility from just Python code to the GPT and its Actions feature. FINAL NOTE: "Warning: Existing API integrations that use your secret key and do not explicitly specify an OpenAI-Organization header will be affected. Any such API usage will count as usage for the DocMatthew's organization."

Các kĩ năng yêu cầu

Những bài dự thi tốt nhất dự cuộc thi này

Xem thêm bài dự thi

Bảng thông báo công khai

  • KrumtumM
    Chủ cuộc thi
    • cách đây 2 tháng

    I will finish this up soon, just got out of the hospital for Asthma attack, my apologies.

    • cách đây 2 tháng
  • wintersoldier538
    wintersoldier538
    • cách đây 2 tháng

    I am sorry to hear about your pneumonia. Wishing you a speedy recovery.

    • cách đây 2 tháng
  • KrumtumM
    Chủ cuộc thi
    • cách đây 2 tháng

    Apologies, i have been bedridden sick. I will be back to work on this by Monday if the pnemonia wanes

    • cách đây 2 tháng
  • KrumtumM
    Chủ cuộc thi
    • cách đây 3 tháng

    We have a winner. Testing to confirm then the winner will be announced. Thank you everyone who participated. Please see my other guaranteed contests, which usually include a large tip.

    • cách đây 3 tháng
  • wintersoldier538
    wintersoldier538
    • cách đây 3 tháng

    Apologies for the delay. I have thoroughly gone through the code to complete this work. I have provided a Google Drive link in my contest entry, under the reply section. The google drive contains files, which contains the data, that you will need to fill in the different fields of GPT Editor. Please test it out and tell me.

    • cách đây 3 tháng
  • KrumtumM
    Chủ cuộc thi
    • cách đây 3 tháng

    Let me know how things are going with the code, please reread the details as it has been updated. Recursive prompt, feedback loop and maybe iterative steps are all available methods, no?

    • cách đây 3 tháng
  • wintersoldier538
    wintersoldier538
    • cách đây 3 tháng

    If this is the approach, you want to take, then I can give you data to fill in the various fields of GPT editor. This data will be based on the inner functioning of "Chain of Thoughts" python script, which I have thoroughly analyzed.

    • cách đây 3 tháng
  • wintersoldier538
    wintersoldier538
    • cách đây 3 tháng

    Yes, the "working hypothetical" may work. With some clever prompt engineering, we need the make the GPT follow our instructions. The instructions would be, in regards to the workflow of "Chain of Thoughts". We can also upload a document, to custom GPT with very clear rules regarding how this should work. Then, GPT will only ask us for our topic and do the rest of work and output it in a single response.

    • cách đây 3 tháng
  • wintersoldier538
    wintersoldier538
    • cách đây 3 tháng

    We can only provide knowledge base and instructions to this custom "GPT". In the instruction, you can ask it to loop, but it will not loop like it does in the original Python script.

    • cách đây 3 tháng
    1. KrumtumM
      Chủ cuộc thi
      • cách đây 3 tháng

      Yeah we are going to make it look, hell or high water with a hard coded work around in the Schema. Here is a "Working Hypothetical" of how to do it. Set values of x to be xi xii and xiii. 2 Confirm that these x variables have the value we just previously set in the prior chat output. Then Initialize the "Recursive prompt" specifically having it do all three at the same time in the same input and output window. Then have it go through each step and just to confirm it working correctly have it state the current value xi xii and xiii. for every few steps so we can see actual progression according to our processing goals. The last step the value of x is determined by whichever xi xii and xiii ranked the highest, Is that not possible?

      • cách đây 3 tháng
  • wintersoldier538
    wintersoldier538
    • cách đây 3 tháng

    I understand your concerns. As I already told you, loops cannot be employed in "GPT". We have to use workaround like using a Recursive prompt. But, Recursive prompt would only send a single request to OpenAI's API, based on which it would give you a response. There well be no looping as it's not possible at all. Will that be acceptable to you?

    • cách đây 3 tháng
  • KrumtumM
    Chủ cuộc thi
    • cách đây 3 tháng

    I know the pros and cons of running a process in Pycharm locally on my pc or having it run on Open AI servers through the GPTs. If anything the GPTs is simplier to compose but for now its basically free for a plus member whereas anything that is not a GPTs will cost me API tolkiens, got me?

    • cách đây 3 tháng
  • wintersoldier538
    wintersoldier538
    • cách đây 3 tháng

    But loops can be done in python. You have two options: here use python code with API or create GPT using GPT editor.

    • cách đây 3 tháng
  • wintersoldier538
    wintersoldier538
    • cách đây 3 tháng

    Loops cannot be directly added to "GPT". To create a "GPT" no programming language is allowed. We have to employ workarounds like Recursive prompt or something like that.

    • cách đây 3 tháng
  • wintersoldier538
    wintersoldier538
    • cách đây 3 tháng

    You see, in the Python script there is code where we make call to OpenAI's API and use loops to make it so work. If you were to use the custom gpt or '"GPT" that is being provided by OpenAI, then you can only create it by using the GPT editor. Primarily, it only works as a customized ChatGpt, where some knowledge is already given, based on which, it tailors it's responses.

    • cách đây 3 tháng
  • wintersoldier538
    wintersoldier538
    • cách đây 3 tháng

    The Python zip file that you have provided, already has the code to run "Chain of Thoughts". I have been able to make it run locally on my machine and have attached the screenshot of it in my submission. Do you want to add some additional features to it or is it not running properly on your machine?

    • cách đây 3 tháng
  • KrumtumM
    Chủ cuộc thi
    • cách đây 3 tháng

    The central focus is just to get Tree of THoughts or Graph of THoughts running as a GPTs. I am a novice but it seems to be Its just a matter of setting a loop to occur 5 times at the right spots. 2. Using the competions part of the ai model to go through each step in the Tree of THoughts or Graph of THoughts Prompt Engineering prompt process. Everything else is just polish

    • cách đây 3 tháng
  • wintersoldier538
    wintersoldier538
    • cách đây 3 tháng

    You have mentioned that you want to convert python code to GPT actions. But, we only need actions, if need data from external API from third parties. Can you clarify, this part, as to what kind of external data you would be needing and how it would be used.

    • cách đây 3 tháng
  • KrumtumM
    Chủ cuộc thi
    • cách đây 3 tháng

    No, I will only be using this for my own work. I may charge for it later if I can but as a external API. When you publish a GPTs people steal all of your ideas and copy your entire configuration. Many crtics say its for the consumer, not the big money people the businesses and companies.

    • cách đây 3 tháng
    1. wintersoldier538
      wintersoldier538
      • cách đây 3 tháng

      You have mentioned that you want to convert python code to GPT actions.

      • cách đây 3 tháng
    2. wintersoldier538
      wintersoldier538
      • cách đây 3 tháng

      But, we only need actions, if need data from external API from third parties. Can you clarify, this part, as to what kind of external data you would be needing and how it would be used.

      • cách đây 3 tháng
  • wintersoldier538
    wintersoldier538
    • cách đây 3 tháng

    Is your end goal publishing it on OpenAI's store or is it something different?

    • cách đây 3 tháng
  • achyuttiwari22
    achyuttiwari22
    • cách đây 3 tháng

    This seems a difficult task to be done

    • cách đây 3 tháng
    1. KrumtumM
      Chủ cuộc thi
      • cách đây 3 tháng

      Nah, not with AI to help you code, its never been easier than 2 5 or 10 years ago. I doubled the price of the contest so I think its getting better and better.

      • cách đây 3 tháng
  • KrumtumM
    Chủ cuộc thi
    • cách đây 3 tháng

    Everyone, check this out cutting edge command: working.context.append('Birthday: 11th October.\nFavorite cake: Chokalate kucken mit sahne made by wife')

    • cách đây 3 tháng
  • KrumtumM
    Chủ cuộc thi
    • cách đây 3 tháng

    I have decided to maybe add a tip so that makes the entire project worth more. I already doubled it from 20.00. This is a Birthday present to myself. Come on guys lets get this done. You maybe can use Anydesk or VNC to my PC.

    • cách đây 3 tháng
  • KrumtumM
    Chủ cuộc thi
    • cách đây 3 tháng

    i can let you use the AI as you vnc easydesk into my sandboxed pc. Do you know how to use AI to generate python code through gpt pilot from https://github.com/Pythagora-io/gpt-pilot

    • cách đây 3 tháng
  • achyuttiwari22
    achyuttiwari22
    • cách đây 3 tháng

    I hope my solution provided may serve as a birthday present to you, sir. Also, I started freelancing a few weeks ago, and I am looking forward to more opportunities. Winning this contest will help me, sir.

    • cách đây 3 tháng
  • KrumtumM
    Chủ cuộc thi
    • cách đây 3 tháng

    Can everyone hurry up and finish this for me. Its my Birthday saturday and this is the present I really wanted. I am grateful and appreciate your help cause I am unable to do it without your help.

    • cách đây 3 tháng
  • KrumtumM
    Chủ cuộc thi
    • cách đây 3 tháng

    Who ever is first to provide the code that works will be awarded. Even though I may test someone elses code first if yours was time marked first and your works and I can install and run it you will be awarded and maybe a tip as well.

    • cách đây 3 tháng

Xem thêm bình luận

Làm thế nào để bắt đầu với cuộc thi

  • Đăng cuộc thi của bạn

    Đăng cuộc thi của bạn Nhanh chóng và dễ dàng

  • Nhận được vô số bài dự thi

    Nhận được vô số Bài dự thi Từ khắp nơi trên thế giới

  • Trao giải cho bài thi xuất sắc nhất

    Trao giải cho bài thi xuất sắc nhất Download File - Đơn giản!

Đăng cuộc thi ngay hoặc tham gia với chúng tôi ngay hôm nay!