Skip to content

Commit

Permalink
Releasing version 2.121.1
Browse files Browse the repository at this point in the history
Releasing version 2.121.1
  • Loading branch information
oci-dex-release-bot authored Feb 13, 2024
2 parents 3dbd707 + c9c3aab commit a50f0d2
Show file tree
Hide file tree
Showing 145 changed files with 3,596 additions and 270 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@ Change Log
All notable changes to this project will be documented in this file.

The format is based on `Keep a Changelog <http://keepachangelog.com/>`_.
====================
2.121.1 - 2024-02-13
====================

Added
-----
* Support for adding automatic backups during cross region operations and disaster recovery in the Autonomous Database service
* Support for overlapping CIDR in network path analyzer in the Virtual Network Monitoring service
* Support for additional attributes in entity and topology in the Log Analytics service
* Support for historic collection and log type while creating object collection rules in the Log Analytics service
* Support for position aware parsers in the Log Analytics service
* Support for filtering log sources, detection rules and scheduled tasks based on target service in the Log Analytics service
* Support for additional recall and release attributes in the Log Analytics service
* Support for opc-meta-properties header while uploading log events in the Log Analytics service
* Support for Generative AI Inference service

====================
2.121.0 - 2024-02-06
====================
Expand Down
6 changes: 6 additions & 0 deletions THIRD_PARTY_LICENSES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ cffi
* Source code: https://pypi.org/project/cffi/#files
* Project home: https://cffi.readthedocs.io/en/latest

sseclient
* Copyright 2024 Maxime Petazzoni [email protected]
* License: Apache License 2.0
* Source code: https://github.com/mpetazzoni/sseclient
* Project home: https://github.com/mpetazzoni/sseclient

=============================== Licenses ===============================

------------------------------ MIT License -----------------------------
Expand Down
6 changes: 5 additions & 1 deletion THIRD_PARTY_LICENSES_DEV.txt
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,11 @@ urllib3
* Source code: https://github.com/urllib3/urllib3
* Project home: https://urllib3.readthedocs.io


sseclient
* Copyright 2024 Maxime Petazzoni [email protected]
* License: Apache License 2.0
* Source code: https://github.com/mpetazzoni/sseclient
* Project home: https://github.com/mpetazzoni/sseclient

=============================== Licenses ===============================

Expand Down
9 changes: 9 additions & 0 deletions docs/api/log_analytics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ Log Analytics
oci.log_analytics.models.CreateLogAnalyticsObjectCollectionRuleDetails
oci.log_analytics.models.CreateScheduledTaskDetails
oci.log_analytics.models.CreateStandardTaskDetails
oci.log_analytics.models.CreateTableCommandDescriptor
oci.log_analytics.models.CreateViewCommandDescriptor
oci.log_analytics.models.CreationSource
oci.log_analytics.models.CredentialEndpoint
Expand All @@ -84,6 +85,9 @@ Log Analytics
oci.log_analytics.models.DeleteLogAnalyticsAssociationDetails
oci.log_analytics.models.DeltaCommandDescriptor
oci.log_analytics.models.DemoModeCommandDescriptor
oci.log_analytics.models.Dependency
oci.log_analytics.models.DependentParser
oci.log_analytics.models.DependentSource
oci.log_analytics.models.DisableAutoAssociationDetail
oci.log_analytics.models.DisableAutoAssociationDetails
oci.log_analytics.models.DistinctCommandDescriptor
Expand Down Expand Up @@ -212,6 +216,10 @@ Log Analytics
oci.log_analytics.models.LogAnalyticsMetaFunctionCollection
oci.log_analytics.models.LogAnalyticsMetaSourceType
oci.log_analytics.models.LogAnalyticsMetaSourceTypeCollection
oci.log_analytics.models.LogAnalyticsMetadata
oci.log_analytics.models.LogAnalyticsMetadataCollection
oci.log_analytics.models.LogAnalyticsMetadataDetails
oci.log_analytics.models.LogAnalyticsMetadataSummary
oci.log_analytics.models.LogAnalyticsMetric
oci.log_analytics.models.LogAnalyticsObjectCollectionRule
oci.log_analytics.models.LogAnalyticsObjectCollectionRuleCollection
Expand Down Expand Up @@ -317,6 +325,7 @@ Log Analytics
oci.log_analytics.models.ScopeFilter
oci.log_analytics.models.SearchCommandDescriptor
oci.log_analytics.models.SearchLookupCommandDescriptor
oci.log_analytics.models.SequenceCommandDescriptor
oci.log_analytics.models.SortCommandDescriptor
oci.log_analytics.models.SortField
oci.log_analytics.models.SourceMappingResponse
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
CreateTableCommandDescriptor
============================

.. currentmodule:: oci.log_analytics.models

.. autoclass:: CreateTableCommandDescriptor
:show-inheritance:
:special-members: __init__
:members:
:undoc-members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Dependency
==========

.. currentmodule:: oci.log_analytics.models

.. autoclass:: Dependency
:show-inheritance:
:special-members: __init__
:members:
:undoc-members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
DependentParser
===============

.. currentmodule:: oci.log_analytics.models

.. autoclass:: DependentParser
:show-inheritance:
:special-members: __init__
:members:
:undoc-members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
DependentSource
===============

.. currentmodule:: oci.log_analytics.models

.. autoclass:: DependentSource
:show-inheritance:
:special-members: __init__
:members:
:undoc-members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
LogAnalyticsMetadata
====================

.. currentmodule:: oci.log_analytics.models

.. autoclass:: LogAnalyticsMetadata
:show-inheritance:
:special-members: __init__
:members:
:undoc-members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
LogAnalyticsMetadataCollection
==============================

.. currentmodule:: oci.log_analytics.models

.. autoclass:: LogAnalyticsMetadataCollection
:show-inheritance:
:special-members: __init__
:members:
:undoc-members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
LogAnalyticsMetadataDetails
===========================

.. currentmodule:: oci.log_analytics.models

.. autoclass:: LogAnalyticsMetadataDetails
:show-inheritance:
:special-members: __init__
:members:
:undoc-members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
LogAnalyticsMetadataSummary
===========================

.. currentmodule:: oci.log_analytics.models

.. autoclass:: LogAnalyticsMetadataSummary
:show-inheritance:
:special-members: __init__
:members:
:undoc-members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
SequenceCommandDescriptor
=========================

.. currentmodule:: oci.log_analytics.models

.. autoclass:: SequenceCommandDescriptor
:show-inheritance:
:special-members: __init__
:members:
:undoc-members:
:inherited-members:
1 change: 1 addition & 0 deletions docs/api/vn_monitoring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ Vn Monitoring
oci.vn_monitoring.models.NoRouteRoutingAction
oci.vn_monitoring.models.NoRouteRoutingActionDetails
oci.vn_monitoring.models.NsgConfiguration
oci.vn_monitoring.models.OnPremEndpoint
oci.vn_monitoring.models.Path
oci.vn_monitoring.models.PathAnalysisWorkRequestResult
oci.vn_monitoring.models.PathAnalyzerTest
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
OnPremEndpoint
==============

.. currentmodule:: oci.vn_monitoring.models

.. autoclass:: OnPremEndpoint
:show-inheritance:
:special-members: __init__
:members:
:undoc-members:
:inherited-members:
55 changes: 55 additions & 0 deletions examples/generate_text_sse_example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# coding: utf-8
# Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.

##########################################################################
# generate_text_demo.py
# Supports Python 3
##########################################################################
# Info:
# Get texts from LLM model for given prompts using OCI Generative AI Service.
##########################################################################
# Application Command line(no parameter needed)
# python generate_text_demo.py
##########################################################################
import oci
import json

# Setup basic variables
# Auth Config
# TODO: Please update config profile name and use the compartmentId that has policies grant permissions for using Generative AI Service
compartment_id = "<compartment_ocid>"
CONFIG_PROFILE = "DEFAULT"
config = oci.config.from_file('~/.oci/config', CONFIG_PROFILE)

# Service endpoint
endpoint = "https://inference.generativeai.us-chicago-1.oci.oraclecloud.com"

generative_ai_inference_client = oci.generative_ai_inference.GenerativeAiInferenceClient(config=config, service_endpoint=endpoint, retry_strategy=oci.retry.NoneRetryStrategy(), timeout=(10, 240))

cohere_generate_text_request = oci.generative_ai_inference.models.CohereLlmInferenceRequest()
cohere_generate_text_request.prompt = "Tell me one fact about earth"
cohere_generate_text_request.is_stream = True
cohere_generate_text_request.max_tokens = 20
cohere_generate_text_request.temperature = 0.75
cohere_generate_text_request.top_p = 0.7
cohere_generate_text_request.frequency_penalty = 1.0

generate_text_detail = oci.generative_ai_inference.models.GenerateTextDetails()
generate_text_detail.serving_mode = oci.generative_ai_inference.models.OnDemandServingMode(model_id="cohere.command")
# generate_text_detail.serving_mode = oci.generative_ai.models.DedicatedServingMode(endpoint_id="custom-model-endpoint") # for custom model from Dedicated AI Cluster
generate_text_detail.compartment_id = compartment_id
generate_text_detail.inference_request = cohere_generate_text_request

if "<compartment_ocid>" in compartment_id:
print("ERROR:Please update your compartment id in target python file")
quit()

generate_text_response = generative_ai_inference_client.generate_text(generate_text_detail)

# Print result
print("**************************Generate Texts Result**************************")
print(vars(generate_text_response))

for event in generate_text_response.data.events():
print(json.loads(event.data)["text"])
5 changes: 5 additions & 0 deletions examples/showoci/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.

The format is based on `Keep a Changelog <http://keepachangelog.com/>`_.

=====================
24.01.30 - 24.01.30
=====================
* Added Gen AI

=====================
23.12.20 - 23.12.20
=====================
Expand Down
3 changes: 2 additions & 1 deletion examples/showoci/showoci.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
# - oci.network_firewall.NetworkFirewallClient
# - oci.opensearch.OpensearchClusterClient
# - oci.psql.PostgresqlClient
# - oci.generative_ai.GenerativeAiClient
#
# Modules without CSV yet:
# - datasciencemodeldeployment
Expand Down Expand Up @@ -127,7 +128,7 @@
import os
import time

version = "23.12.20"
version = "24.02.06"

##########################################################################
# check OCI version
Expand Down
Loading

0 comments on commit a50f0d2

Please sign in to comment.