Skip to content

Commit 5e0a786

Browse files
committed
Introduce OSMF EULA
1 parent c1c6a52 commit 5e0a786

File tree

4 files changed

+105
-6
lines changed

4 files changed

+105
-6
lines changed

osmfeula.txt

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
End User License Agreement
2+
3+
This Open Source Maintenance Fee Agreement ("Agreement") is a legal
4+
agreement between you ("User") and Devlooped ("Project") for the use of
5+
Devlooped.WhatsApp ("Software"), an open source software project licensed
6+
under the MIT License ("OSI License"), an OSI-approved open source license.
7+
Project offers a Binary Release of the Software to Users in exchange for a
8+
maintenance fee ("Fee"). "Binary Release" refers to pre-compiled executable
9+
versions of the Software provided by Project. By accessing or using the
10+
Binary Release, User agrees to be bound by the terms of this Agreement.
11+
12+
1. Applicability
13+
14+
Project agrees to provide User with the Binary Release in exchange for the
15+
Fees outlined in Section 2, subject to the terms of this Agreement. The Fee
16+
applies only to Users that generate revenue by the Software.
17+
Non-revenue-generating use of the Software is exempt from this Fee. In
18+
addition, Users who pay separate support and/or maintenance fees to the
19+
maintainers of the Software are exempt from the Fee outlined in this
20+
Agreement. This distinction ensures that duplicate fees are not imposed,
21+
promoting fairness and consistency while respecting alternative support
22+
arrangements.
23+
24+
2. Monthly Fee and Payment Terms
25+
26+
Revenue-generating Users required to pay the Fee shall follow the payment
27+
terms set forth by the Project. Failure to comply with these terms may result
28+
in suspending access to the Binary Release. However, this does not restrict
29+
the User from obtaining or redistributing binaries from other sources or
30+
self-compiling them.
31+
32+
3. Nature of the Fee
33+
34+
The Fee is not a license fee. The Software's source code is licensed to User
35+
under the OSI License and remains freely distributable under the terms of the
36+
OSI License and any applicable open-source licenses.
37+
38+
4. Conflicts with OSI License
39+
40+
To the extent any term of this Agreement conflicts with User's rights
41+
under the OSI License regarding the Software, the OSI License shall govern.
42+
This Agreement applies only to the Binary Release and does not limit User's
43+
ability to access, modify, or distribute the Software's source code or
44+
self-compiled binaries. User may independently compile binaries from the
45+
Software's source code without this Agreement, subject to OSI License terms.
46+
User may redistribute the Binary Release received under this Agreement,
47+
provided such redistribution complies with the OSI License (e.g., including
48+
copyright and permission notices). This Agreement imposes no additional
49+
restrictions on such rights.
50+
51+
5. Disclaimer of Warranty and Limitation of Liability
52+
53+
THE SOFTWARE AND BINARY RELEASE ARE PROVIDED BY THE PROJECT "AS IS" AND ANY
54+
EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
55+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
56+
DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR ITS CONTRIBUTORS BE LIABLE FOR
57+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
58+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
59+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
60+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
61+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
62+
OF THE SOFTWARE AND BINARY RELEASE, EVEN IF ADVISED OF THE POSSIBILITY OF
63+
SUCH DAMAGE.

readme.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,23 @@
66
[![License](https://img.shields.io/github/license/devlooped/Extensions.AI.svg?color=blue)](https://github.com//devlooped/Extensions.AI/blob/main/license.txt)
77
[![Build](https://github.com/devlooped/Extensions.AI/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/devlooped/Extensions.AI/actions/workflows/build.yml)
88

9-
<!-- #content -->
9+
<!-- #description -->
1010
Extensions for Microsoft.Extensions.AI
11+
<!-- #description -->
12+
13+
## Open Source Maintenance Fee
14+
15+
To ensure the long-term sustainability of this project, use of this project requires an
16+
[Open Source Maintenance Fee](https://opensourcemaintenancefee.org). While the source
17+
code is freely available under the terms of the [MIT License](./license.txt), all other aspects of the
18+
project --including opening or commenting on issues, participating in discussions and
19+
downloading releases-- require [adherence to the Maintenance Fee](./osmfeula.txt).
20+
21+
In short, if you use this project to generate revenue, the [Maintenance Fee is required](./osmfeula.txt).
1122

23+
To pay the Maintenance Fee, [become a Sponsor](https://github.com/sponsors/devlooped).
24+
25+
<!-- #content -->
1226
## Grok
1327

1428
Full support for Grok [Live Search](https://docs.x.ai/docs/guides/live-search)
@@ -137,17 +151,21 @@ var messages = new Chat()
137151
{ "user", "What is 101*3?" },
138152
};
139153

140-
IChatClient chat = new OpenAIChatClient(Env.Get("OPENAI_API_KEY")!, "o3-mini");
154+
IChatClient chat = new OpenAIChatClient(Env.Get("OPENAI_API_KEY")!, "gpt-5");
141155

142156
var options = new ChatOptions
143157
{
144-
ModelId = "o4-mini", // 👈 can override the model on the client
145-
ReasoningEffort = ReasoningEffort.High, // 👈 or Medium/Low, extension property
158+
ModelId = "gpt-5-mini", // 👈 can override the model on the client
159+
ReasoningEffort = ReasoningEffort.High, // 👈 or Medium/Low/Minimal, extension property
146160
};
147161

148162
var response = await chat.GetResponseAsync(messages, options);
149163
```
150164

165+
> [!TIP]
166+
> We provide support for the newest `Minimal` reasoning effort in the just-released
167+
> GPT-5 model family.
168+
151169
### Web Search
152170

153171
Similar to the Grok client, we provide the `WebSearchTool` to enable search customization
@@ -159,7 +177,7 @@ var options = new ChatOptions
159177
// 👇 search in Argentina, Bariloche region
160178
Tools = [new WebSearchTool("AR")
161179
{
162-
Region = "Bariloche", // 👈 Bariloche region
180+
Region = "Bariloche", // 👈 Bariloche region
163181
TimeZone = "America/Argentina/Buenos_Aires", // 👈 IANA timezone
164182
ContextSize = WebSearchContextSize.High // 👈 high search context size
165183
}]
@@ -235,6 +253,7 @@ var options = new ChatOptions
235253
};
236254

237255
var response = await client.GetResponseAsync(chat, options);
256+
// 👇 finds the expected result of the tool call
238257
var result = response.FindCalls<MyResult>(tool).FirstOrDefault();
239258

240259
if (result != null)

src/AI/AI.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
<PackageId>Devlooped.Extensions.AI</PackageId>
77
<Description>Extensions for Microsoft.Extensions.AI</Description>
88
<NoWarn>$(NoWarn);OPENAI001</NoWarn>
9+
<PackageLicenseExpression></PackageLicenseExpression>
10+
<PackageLicenseFile>OSMFEULA.txt</PackageLicenseFile>
11+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
912
</PropertyGroup>
1013

1114
<ItemGroup>
@@ -25,6 +28,7 @@
2528
<ItemGroup>
2629
<None Update="Devlooped.Extensions.AI.targets" PackFolder="build" />
2730
<None Update="Devlooped.Extensions.AI.props" PackFolder="build" />
31+
<None Include="..\..\osmfeula.txt" Link="osmfeula.txt" PackagePath="OSMFEULA.txt" />
2832
</ItemGroup>
2933

3034
</Project>

src/AI/readme.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
<!-- #content -->
1+
<!-- include ../../readme.md#description -->
2+
## Open Source Maintenance Fee
3+
4+
To ensure the long-term sustainability of this project, use of `Devlooped.Extensions.AI` requires an
5+
[Open Source Maintenance Fee](https://opensourcemaintenancefee.org). While the source
6+
code is freely available under the terms of the
7+
[MIT License](https://github.com/devlooped/Extensions.AI/blob/main/license.txt),
8+
this package and other aspects of the project require
9+
[adherence to the Maintenance Fee](https://github.com/devlooped/Extensions.AI/blob/main/osmfeula.txt).
10+
11+
In short, if you use this project to generate revenue, the [Maintenance Fee is required](https://github.com/devlooped/Extensions.AI/blob/main/osmfeula.txt).
12+
13+
To pay the Maintenance Fee, [become a Sponsor](https://github.com/sponsors/devlooped).
14+
215
<!-- include ../../readme.md#content -->
316
<!-- include https://github.com/devlooped/sponsors/raw/main/footer.md -->
417
<!-- exclude -->

0 commit comments

Comments
 (0)