example that actually worked
This commit is contained in:
parent
dd8e15c087
commit
3f78edfb6c
|
@ -0,0 +1,22 @@
|
|||
Took less than a minute to run with 3k tokens on gpt-3
|
||||
cost maybe 1 penny
|
||||
|
||||
2022/12/03 20:18:08 TEXT IS:
|
||||
|
||||
Leonardo da Vinci is one of the most well-known figures in the history of art and science. Born in the Italian city of Florence in 1452, da Vinci was a painter, sculptor, architect, scientist, inventor, and engineer, who made a tremendous impact on the world. His works of art and scientific feats remain revered today and he is regarded as one of the greatest minds of all time.
|
||||
|
||||
Da Vinci's genius manifested itself in many ways throughout his life. His artwork was highly influential in the development of the High Renaissance style of painting. His groundbreaking use of perspective and light and shade, as well as his use of anatomy to create realistic figures, revolutionised the way art was approached. He also made significant contributions to science, engineering, and architecture, inventing and designing a flying machine, a type of armoured car, and a robot.
|
||||
|
||||
The life and works of Leonardo da Vinci are an extraordinary example of the power of human creativity, imagination, and intellect. This essay will explore the life and works of da Vinci, examining his contributions to art, science, and technology, and discussing the legacy of his genius.
|
||||
|
||||
Da Vinci was born on April 15th 1452, in the Italian city of Florence. His father was a notary and his mother a peasant woman. Despite his humble origins, da Vinci was a bright and talented child, and his father soon recognised his potential and sought to provide him with an education. At the age of fifteen, he was apprenticed to the artist Andrea del Verrocchio, with whom he would stay for seven years, learning the skills of painting, sculpting, and metalworking.
|
||||
|
||||
Da Vinci's early works demonstrate his skill as an artist and his dedication to his craft. He produced a number of paintings and sculptures during his apprenticeship, including ‘The Annunciation’ and ‘The Baptism of Christ’, both of which are now considered masterpieces. He also made a number of drawings and sketches, which show his keen interest in anatomy, engineering, and mathematics.
|
||||
|
||||
Throughout his life, da Vinci was a prolific painter, producing some of the most iconic works of the Renaissance period, such as the ‘Mona Lisa’ and 'The Last Supper'. His paintings, which often depicted religious scenes, were distinguished by their lifelike figures and exquisite use of light and shade. He is also renowned for his pioneering use of linear perspective, which revolutionised the way artists approached painting.
|
||||
|
||||
Da Vinci also made significant contributions to science, engineering, and technology. He was an accomplished mathematician, who studied geometry and trigonometry, and was the first to describe the principle of friction. He made numerous drawings and plans for inventions, such as a flying machine, a type of armoured car, and a robot. He also designed various bridges and machinery, and made drawings of the human body and its various organs.
|
||||
|
||||
The legacy of Leonardo da Vinci's genius is evident today in the works of art and science that he produced. His paintings are considered masterpieces, and his innovations in science, engineering, and technology continue to influence modern life. His contributions to art, science, and technology have inspired generations of thinkers and innovators and his influence remains strong today.
|
||||
|
||||
In conclusion, Leonardo da Vinci was a remarkable figure in the history of art and science. His life and works demonstrate the power of human creativity, imagination, and intellect. He revolutionised painting with his use of perspective and light and shade, and made significant contributions to science and technology. His legacy lives on today in the works of art and science he produced, and in the minds of those inspired by his genius.
|
|
@ -27,17 +27,23 @@ func main() {
|
|||
log.Println("engines =", eng)
|
||||
spew.Dump(eng)
|
||||
|
||||
resp, err := client.Completion(ctx, gpt3.CompletionRequest{
|
||||
Prompt: []string{"The first thing you should know about javascript is"},
|
||||
MaxTokens: gpt3.IntPtr(30),
|
||||
Stop: []string{"."},
|
||||
Echo: true,
|
||||
// resp, err := client.Completion(ctx, gpt3.CompletionRequest{
|
||||
resp, err := client.CompletionWithEngine(ctx, "text-davinci-003", gpt3.CompletionRequest{
|
||||
Prompt: []string{"Write a 3000 word essay about DiVinci"},
|
||||
MaxTokens: gpt3.IntPtr(3000),
|
||||
Temperature: gpt3.Float32Ptr(0.7),
|
||||
TopP: gpt3.Float32Ptr(1),
|
||||
// PresencePenalty: gpt3.Float32(0),
|
||||
// FrequencyPenalty: gpt3.Float32(0),
|
||||
// Stop: []string{"."},
|
||||
Echo: false,
|
||||
})
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
fmt.Println(resp.Choices[0].Text)
|
||||
fmt.Println("TEXT IS:", resp.Choices[0].Text)
|
||||
spew.Dump(resp)
|
||||
log.Println("TEXT IS:", resp.Choices[0].Text)
|
||||
|
||||
/*
|
||||
resp, err = client.Completion(ctx, gpt3.CompletionRequest{
|
||||
|
|
Loading…
Reference in New Issue