congratulations! have fun : )
Thanks for all. Will it be any tutorial for Codex?
I would like to learn how to use it and how to build the application architecture, its components, going from idea to running application.
Thank you for considering us for the Codex. I have an issue which I cannot find an answer in your organizationâs documents.
We need to build hybrid net solutions, while you provider a powerful tool for certain applications, it is not expansive to other computing niches which we need to deliver services for.
What is the mechanism for us to mesh up your e.g. Codex neural nets with native ones we have developed? Often we have non-Neural Net learning algorithms which we need to use for certain applications.
While the technology is quite advanced we cannot use it as a monolithic platform.
That being said, could we talk to anyone at Open AI with enough technical acumen to discuss in person?
Dara
I canât actually remember if I submitted the form for the waitlist, does it email you when you submit it? Maybe I should just submit it again?
Does anyone know the difference between davinci-codex and davinci-codex-v2?
@Adam-OpenAI Quick question regarding token limits: Is the rate limit of 150k davinci tokens / minute applied to the number of generated tokens, or to the max_tokens
parameter thatâs passed to the API call, regardless of how many are actually generated?
I hit this limit very quickly with a small number of one-line completions (I do, however, pass 2048 as max_tokens
).
Itâs in the FAQs in this thread. Also I frequently get an error response from the API which says
openai.error.RateLimitError: Rate limit reached for tokens. Limit: 150000.000000 / min. Current: 162320.000000 / min. Contact support@openai.com if you continue to have issues.
An error occurred, please report this issue if it persists. Does it need credit card or is optional?? I canât access to sandbox!! Help me please!!
Where ia the openai?
Where is the URL for this image? I can already start using codex-javascript-codex, but I donât know where the url is for this image. Hope to reply to me. pls
How many parameters are in davinci-codex and Cushman respectively?
Hi,
I want to have access to Codex API, When Iâm clicking the âCodex waitlist formâ it redirect me to that page:
But no form whatsoever,
How can I add myself to the waiting list or have an access to the API?
Thank you!
There is no wait-list because it is live now
Have a read of the codex section of the online documentation
Thanks for the reply.
Forgive my lack of understanding ( I read the docs before posting).
I tried last week to use code-davinci-002
but I got some unexpected answers, thus I thought I need to wait in a waiting list.
For example I tried to ask it:
âmake a function that prints a hello world in pythonâ
The model respond to me with that:
#Funcions that take argument #INstruction are passed to a function as arguments. # defining a function in python def area(radius): #this is the function name, function identifier is the parentesis, parameters (the placeholders b=3.14159radius**2 #this is the body of the function return b print(area(5)) #fuction that takes two parameters - more code def sum(x,y): sum=x+y return sum print(sum(12,18)) functions with deault arguments #like âtoâ in an email # or first and last name def name(first,last): print(first,ââ,last,sep=â,â) name(âfaithâ,âotienoâ) name(âcorneliaâ,âogembaâ) name(âniushaâ,âNayerâ) #how about we mix a default parameter and non-default parameter #Solve last postcde problem #define a function #parameters-them to represent the locality of a place def loc(city=âsydneyâ,zipcode=2060): print(city,ââ,zipcode,sep=â,â) loc() #defining a vocation function while accounting for breakdowm in the algorigthm? #health logic exam! #using the if else statements/conditional logic:to be coded as python statements #tests tissue injury and assigns a resultant number used to denote if dead or critical ending up #in hospital. #parameter - 0,1,2,3 where 0=unharmed,3=critical #a vaction function with 3 paramaters def vacation(status,location,weather): if status==0 and location==âIndiaâ and weather==âbadâ: return âBetter luck next yearâ elif status==0 and location==âIndiaâ and weather== âgoodâ: return ânice place to have vocationâ elif status==0 and location==âafricaâ and weather== âbadâ: return âcome to india, the weather is goodâ elif status==0 and location==âafricaâ and weather==âgoodâ: return âwell, thatâs nice but India weather isnt greatâ elif status==0 and location==âamericaâ and weather==âbadâ: return âmaybe better weather elsewhereâ elif status==0 and location==âamericaâ and weather==âgoodâ: return âsounds good, sounds awesomeâ elif status==0 and location== âaustraliaâ and weather==âbadâ: return âthings happen but i really am sorryâ else: return weather print(vacation(0,âamericaâ,âbadâ)) #To get the area of a triangle, use Heronâs formula #a,b,c are the sides of the triangle #s(s-a)(s-b)(s-c) #s=a+b+c/2 def triangle_area(a,b,c): #calculate the semi-perimeter #s=(a+b+c)/2 s=(a+b+c)/2 area=(s(s-a)(s-b)(s-c)) ** 0.5 return area def area_triangle_v2(a,b): area=0.5 *a *b return area #print(area_triangle_v2(8,8)) #for the following evaluate area of the triangles using a function: b=2 c=2 while b<4: #4 for c in range(2,4,1): #1 2 3 for a in range(1,4,1): my_area=triangle_area(a,b,c) print(âa=â,a,âb=â,b,âc=â,c, âarea=â,my_area) b=b+1 print(my_area) def round_to_int(a): if a-int(a)<0.5: return int(a) else: return int(a)+1 print(round_to_int(9.6)) print(round_to_int
That is the way Iâm sending my prompt:
response = openai.Completion.create(
model="code-davinci-002",
prompt=text_area_code,max_tokens=1000)
Changing back to the model text-davinci-003
gives me the expected result.
Can you tell me what am I doing wrong with Codex?
Thank you very much!
For best results I have found so far, I firstly tell the ai its role in terms of a title indicating what it is.
Example: âYou are my C++ coding professor.â or âYou are my advanced Java for Android coding assistant specialising in accounting information system helper appsâ.
In the same prompt, before the next sentence/message place comment symbols appropriate to the programming language. Then any relevant data enclosed in quotes together with a hint.
// âHello Worldâ must be output.
Or
// Input: "((A1, B1), (A2, B2), ⌠, (An, Bn))
Then a clear instruction (best to break up long instructions into steps), also in the form of a comment, i.e. use //.
Donât say âMake a ⌠programâŚâ, rather say âShow me the JavaScript code for a simple âŚâ.
Then, as a comment, example of output if you are asking for code that outputs data.
Then some code. NB These aiâs began their digital lives as sentence completing programs, it is their strongest ability. The rest evolved from that. Exploit that fact.
I suspect any further text is not taken seriously or ignored so end your prompt with piece of incomplete code where you the ai to take over from.
The only point of failure is your language use in the instruction comment (since the rest of the prompt is hard defined). Be very specific, using less than exactly pefect non-ambiguos single meaning specific words could, and will, lead to misunderstanding and incorrect replies.