|
69 | 69 | ''' |
70 | 70 |
|
71 | 71 |
|
72 | | -# Example of using the gemini-2.5-pro model |
73 | | -model_2_5_pro_pre = ModelFactory.create( |
| 72 | +# Example of using the gemini-3-flash model |
| 73 | +model_3_flash = ModelFactory.create( |
74 | 74 | model_platform=ModelPlatformType.GEMINI, |
75 | | - model_type=ModelType.GEMINI_2_5_PRO, |
| 75 | + model_type=ModelType.GEMINI_3_FLASH, |
76 | 76 | model_config_dict=GeminiConfig(temperature=0.2).as_dict(), |
77 | 77 | ) |
78 | | -camel_agent_pro = ChatAgent(system_message=sys_msg, model=model_2_5_pro_pre) |
79 | | -response_pro = camel_agent_pro.step(user_msg) |
80 | | -print(response_pro.msgs[0].content) |
| 78 | +camel_agent_flash = ChatAgent(system_message=sys_msg, model=model_3_flash) |
| 79 | +user_msg = """ |
| 80 | +Explain how Generative AI works in short language. |
| 81 | +""" |
| 82 | +response_flash = camel_agent_flash.step(user_msg) |
| 83 | +print(response_flash.msgs[0].content) |
81 | 84 |
|
82 | 85 | ''' |
83 | 86 | =============================================================================== |
84 | | -Hello and a big hi to the entire CAMEL AI community! |
| 87 | +Generative AI works in three simple steps: |
85 | 88 |
|
86 | | -It's fantastic to acknowledge your dedication to |
87 | | -the important and fascinating study of autonomous and communicative agents. |
88 | | -Open-source collaboration is the engine of innovation, |
89 | | -and your work is pushing the boundaries of what's possible in AI. |
| 89 | +1. **Training:** It "reads" or "looks at" massive amounts of existing data |
| 90 | +(like books, code, or images) to learn patterns, styles, and structures. |
| 91 | +2. **Prediction:** When you give it a prompt, it doesn't "think"—it |
| 92 | +calculates probability. It predicts what word, pixel, or note should come next |
| 93 | +based on the patterns it learned. |
| 94 | +3. **Creation:** By repeating these predictions millions of times per second, |
| 95 | +it generates entirely new content that looks or sounds like it was made by a |
| 96 | +human. |
90 | 97 |
|
91 | | -Keep up the brilliant research and community building |
| 98 | +**In short:** It is a super-powered version of **autocomplete** that uses math |
| 99 | +to guess the most likely next piece of information. |
92 | 100 | =============================================================================== |
93 | 101 | ''' |
0 commit comments