Skip to content

Commit

Permalink
[Release] Released for 2023.12.1 (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
devlivecommunity authored Dec 23, 2023
2 parents 7f8161c + 10d3306 commit 2c8bc71
Show file tree
Hide file tree
Showing 10 changed files with 168 additions and 16 deletions.
34 changes: 34 additions & 0 deletions docs/docs/assets/javascript/main.2dasf4fv.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
function shuffle(array) {
let currentIndex = array.length, temporaryValue, randomIndex;
while (0 !== currentIndex) {
randomIndex = Math.floor(Math.random() * currentIndex);
currentIndex -= 1;
temporaryValue = array[currentIndex];
array[currentIndex] = array[randomIndex];
array[randomIndex] = temporaryValue;
}
return array;
}

function showRandomAnnouncement(groupId, timeInterval) {
const announceFastAPI = document.getElementById(groupId);
if (announceFastAPI) {
let children = [].slice.call(announceFastAPI.children);
children = shuffle(children)
let index = 0
const announceRandom = () => {
children.forEach((el, i) => {el.style.display = "none"});
children[index].style.display = "block"
index = (index + 1) % children.length
}
announceRandom()
setInterval(announceRandom, timeInterval)
}
}

async function main() {
showRandomAnnouncement('announce-left', 5000)
showRandomAnnouncement('announce-right', 10000)
}

main()
1 change: 1 addition & 0 deletions docs/docs/assets/stylesheets/main.2f34a6de.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/docs/assets/stylesheets/palette.ecc776e4.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions docs/docs/release/latest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: 2023.12.1
---

| Release version | Release Time |
|:---------------:|:------------:|
| `2023.12.1` | `2023-12-23` |

## OpenAi

---

- Create fine-tuning job
- List fine-tuning jobs
- List fine-tuning events
- Retrieve fine-tuning job
- Cancel fine-tuning
17 changes: 17 additions & 0 deletions docs/docs/release/latest.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: 2023.12.1
---

| 发布版本 | 发布时间 |
|:-----------:|:------------:|
| `2023.12.1` | `2023-12-23` |

## OpenAi

---

- 创建微调作业
- 列出微调作业
- 列出微调事件
- 检索微调作业
- 取消微调作业
2 changes: 1 addition & 1 deletion docs/docs/released.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Release Notes
title: Old Versions

hide:
- navigation
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/released.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 发行说明
title: 旧版本

hide:
- navigation
Expand Down
43 changes: 30 additions & 13 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@ repo_name: devlive-community/openai-java-sdk
repo_url: https://github.com/devlive-community/openai-java-sdk
edit_uri: "https://github.com/devlive-community/openai-java-sdk/blob/master/docs/docs"

copyright: Copyright © 2023 Devlive Community
banners:
- title: OpenAi Java SDK &nbsp; <em>2023.12.1</em> &nbsp; is released
link: /release-latest.html
description: <a href="https://github.com/devlive-community/openai-java-sdk" class="text-white"> Do you ❤️ DataCap? Give us a 🌟 on GitHub </a>

copyright: Copyright &copy; 2023 devlive-community

use_directory_urls: false

theme:
name: material
custom_dir: overrides

language: en
features:
Expand Down Expand Up @@ -41,6 +47,12 @@ theme:
link: /zh/
lang: zh

extra_css:
- assets/stylesheets/main.2f34a6de.min.css
- assets/stylesheets/palette.ecc776e4.min.css
extra_javascript:
- assets/javascript/main.2dasf4fv.js

markdown_extensions:
- attr_list
- md_in_html
Expand All @@ -55,21 +67,24 @@ markdown_extensions:

plugins:
- i18n:
reconfigure_material: true
default_language: en
languages:
en: English
zh: Chinese (Simplified)
- locale: zh
name: Chinese (Simplified)
build: true
default: false
nav_translations:
NavReleaseNote: 更新日志
- locale: en
name: English
build: true
default: true
nav_translations:
NavReleaseNote: Release Note
- redirects:
redirect_maps:
reference/users.md: reference/openai/users.md
reference/models.md: reference/openai/models.md
reference/completions.md: reference/openai/completions.md
reference/completions_chat.md: reference/openai/completions_chat.md
reference/images.md: reference/openai/images.md
reference/embeddings.md: reference/openai/embeddings.md
reference/audio.md: reference/openai/audio.md
reference/moderations.md: reference/openai/moderations.md
reference/edits.md: reference/openai/edits.md
release-latest.md: release/latest.md

nav:
- index.md
Expand All @@ -95,5 +110,7 @@ nav:
- Google PaLM:
- reference/google_palm/completions.md
- reference/google_palm/chat.md
- released.md
- NavReleaseNote:
- release/latest.md
- released.md
- powered_by.md
65 changes: 65 additions & 0 deletions docs/overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{#-
This file was automatically generated - do not edit
-#}
{% extends "base.html" %}
{% block extrahead %}
<link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>

{% endblock %}
{% block announce %}
<div class="announce-wrapper">
<div id="announce-left">
{% for banner in config.banners %}
<div class="item">
<a class="announce-link" href="{{ banner.link }}" style="color: #ffffff;">
<div class="twemoji">
<div>{{ banner.title }}</div>
<div style="margin-left: 100px; color: #ffffff;">{{ banner.description }}</div>
</div>
</a>
</div>
{% endfor %}
</div>
<div id="announce-right" style="position: relative;">
<div class="item">
</div>
</div>
</div>
{% endblock %}

{% block content %}
{{ super() }}
<!-- Reload on palette change -->
<script>
var palette = __md_get("__palette")
if (palette && typeof palette.color === "object") {
if (palette.color.scheme === "slate") {
var giscus = document.querySelector("script[src*=giscus]")
giscus.setAttribute("data-theme", "dark")
}
}

/* Register event handlers after documented loaded */
document.addEventListener("DOMContentLoaded", function () {
var ref = document.querySelector("[data-md-component=palette]")
ref.addEventListener("change", function () {
var palette = __md_get("__palette")
if (palette && typeof palette.color === "object") {
var theme = palette.color.scheme === "slate" ? "dark" : "light"

/* Instruct Giscus to change theme */
var frame = document.querySelector(".giscus-frame")
frame.contentWindow.postMessage(
{giscus: {setConfig: {theme}}},
"https://giscus.app"
)
}
})
})
</script>
{% endblock %}

{% block scripts %}
{{ super() }}
<script src="{{ 'assets/javascripts/bundle.39654835.min.js' | url }}"></script>
{% endblock %}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.devlive.sdk</groupId>
<artifactId>openai-java-sdk</artifactId>
<version>2023.12.1-SNAPSHOT</version>
<version>2023.12.1</version>

<name>openai-java-sdk</name>
<description>
Expand Down

0 comments on commit 2c8bc71

Please sign in to comment.