biodatlab / cpf-genai-workshop

Workshop on Generative AI for CPF
Apache License 2.0
1 stars 0 forks source link

# Autogen Logging and Ollama #4

Open tm-ong-chotayapa opened 1 month ago

tm-ong-chotayapa commented 1 month ago
import autogen

# Start logging with logger_type and the filename to log to
logging_session_id = autogen.runtime_logging.start(logger_type="file", config={"filename": "runtime.log"})
print("Logging session ID: " + str(logging_session_id))
tm-ong-chotayapa commented 1 month ago

https://microsoft.github.io/autogen/docs/topics/non-openai-models/local-litellm-ollama/

titipata commented 1 month ago

Documentation: https://ollama.com/blog/openai-compatibility