0.8.2
What's Changed
New
- support google.generativeai sdk ChatSession.send_message and add examples by @wenzhe-log10 in #148
import google.generativeai as genai from log10.load import log10 log10(genai) model = genai.GenerativeModel("gemini-1.5-pro-latest", system_instruction="You are a cat. Your name is Neko.") chat = model.start_chat( history=[ {"role": "user", "parts": [{"text": "please say yes."}]}, {"role": "model", "parts": [{"text": "Yes yes yes?"}]}, ] ) prompt = "please say no." response = chat.send_message(prompt) print(response.text)
- README update - add model comparison using CLI by @wenzhe-log10 in #149
Fix
- Move cli utils func in its own file by @kxtran in #150
- fix sync stream for both openai tool_calls and magentic funciton calls by @wenzhe-log10 in #136
Full Changelog: 0.8.1...0.8.2