Skip to content

0.7.2

Compare
Choose a tag to compare
@wenzhe-log10 wenzhe-log10 released this 26 Mar 03:03
· 128 commits to main since this release
fa2cf26

What's Changed

Feature

import vertexai
from vertexai.preview.generative_models import GenerationConfig, GenerativeModel

from log10.load import log10


log10(vertexai)

# change these to your own project and location
project_id = "YOUR_PROJECT_ID"
location = "YOUR_LOCATION"
vertexai.init(project=project_id, location=location)

model = GenerativeModel("gemini-1.0-pro")
chat = model.start_chat()

prompt = "What's the top 5 largest constellations you can find in North American during March?"
generation_config = GenerationConfig(
    temperature=0.9,
    max_output_tokens=128,
)
response = chat.send_message(prompt, generation_config=generation_config)
print(response.text)

Fixes

Full Changelog: 0.7.1...0.7.2