-
Notifications
You must be signed in to change notification settings - Fork 6
feat: add feature for generating presentation files #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
32ae795
71073b1
9d714d6
513819c
570d94f
9750310
c0faf50
78f5ab2
e9e470f
5358449
7b4db39
9bb0fbf
9d1e0c1
54cb335
ce7c55e
4ab72ad
295d985
548252e
d189276
325426a
4950f3e
3f78650
5f0e3bf
4036fb7
1a4dcdd
a45e495
be6ff13
76fcfbf
1057e4d
104a56a
2994eeb
67d9179
865dded
6c06981
ef48c02
bd29e61
3c537e3
539b0e1
2147849
32b31f9
928a94e
880ac8b
1b1c4da
d565e15
ccbff55
f6650e1
b0ad8b8
ae617b4
411bc5f
95c914b
628e093
2987711
fff1e69
ce8a1d9
b2c59c5
01a0b7e
1a5f749
ea8787d
723f4c1
0f25da9
7f21e52
d4c09b3
c524efd
00f803c
af768e1
9082d3c
fd00589
303b9ff
1df9fd3
2298678
e275e90
7aea316
15157cc
bb719fe
f819c76
5e41421
2fddf3b
20939eb
e3524dc
bdf861a
4730774
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,14 @@ | ||
| JWT_KEY=xxx | ||
| OPENAI_API_KEY=PLACEHOLDER_REPLACE_WITH_YOUR_OPENAI_API_KEY_BEFORE_USE | ||
| MAX_IMAGES=5 | ||
| OPENAI_MODEL=gpt-5-mini | ||
|
|
||
| JWT_KEY=PLACEHOLDER_REPLACE_WITH_STRONG_KEY_MIN_32_CHARS_BEFORE_USE | ||
|
|
||
| REDIS_URL=redis:6379 | ||
|
|
||
| REDIS_HOST=redis | ||
| REDIS_PORT=6379 | ||
|
|
||
| SERVER_PORT=5000 | ||
|
|
||
| COMPOSE_PROJECT_NAME=osmodoc | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,25 @@ | ||||||||||||||||||
| { | ||||||||||||||||||
| "version": "0.2.0", | ||||||||||||||||||
| "configurations": [ | ||||||||||||||||||
| { | ||||||||||||||||||
| "name": ".NET Core Launch (web)", | ||||||||||||||||||
| "type": "coreclr", | ||||||||||||||||||
| "request": "launch", | ||||||||||||||||||
| "preLaunchTask": "build", | ||||||||||||||||||
| "program": "${workspaceFolder}/OsmoDoc.API/bin/Debug/net8.0/OsmoDoc.API.dll", | ||||||||||||||||||
| "args": [], | ||||||||||||||||||
| "cwd": "${workspaceFolder}", | ||||||||||||||||||
| "stopAtEntry": false, | ||||||||||||||||||
| "serverReadyAction": { | ||||||||||||||||||
| "action": "openExternally", | ||||||||||||||||||
| "pattern": "\\\\bNow listening on:\\\\s+(https?://\\\\S+)" | ||||||||||||||||||
| }, | ||||||||||||||||||
|
Comment on lines
+13
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix over‑escaped serverReadyAction regex (prevents auto-open). Pattern is over-escaped; VS Code expects double backslashes in JSON. Use this: - "serverReadyAction": {
- "action": "openExternally",
- "pattern": "\\\\bNow listening on:\\\\s+(https?://\\\\S+)"
- },
+ "serverReadyAction": {
+ "action": "openExternally",
+ "pattern": "\\bNow listening on:\\s+(https?://\\S+)"
+ },📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||
| "env": { | ||||||||||||||||||
| "ASPNETCORE_ENVIRONMENT": "Development" | ||||||||||||||||||
| }, | ||||||||||||||||||
| "sourceFileMap": { | ||||||||||||||||||
| "/Views": "${workspaceFolder}/Views" | ||||||||||||||||||
| } | ||||||||||||||||||
| } | ||||||||||||||||||
| ] | ||||||||||||||||||
| } | ||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| { | ||
| "version": "2.0.0", | ||
| "tasks": [ | ||
| { | ||
| "label": "build", | ||
| "command": "dotnet", | ||
| "type": "process", | ||
| "args": [ | ||
| "build", | ||
| "${workspaceFolder}/OsmoDoc.API/OsmoDoc.API.csproj", | ||
| "/property:GenerateFullPaths=true", | ||
| "/consoleloggerparameters:NoSummary" | ||
| ], | ||
| "problemMatcher": "$msCompile" | ||
| }, | ||
| { | ||
| "label": "publish", | ||
| "command": "dotnet", | ||
| "type": "process", | ||
| "args": [ | ||
| "publish", | ||
| "${workspaceFolder}/OsmoDoc.API/OsmoDoc.API.csproj", | ||
| "/property:GenerateFullPaths=true", | ||
| "/consoleloggerparameters:NoSummary" | ||
| ], | ||
| "problemMatcher": "$msCompile" | ||
| }, | ||
| { | ||
| "label": "watch", | ||
| "command": "dotnet", | ||
| "type": "process", | ||
| "args": [ | ||
| "watch", | ||
| "run", | ||
| "--project", | ||
| "${workspaceFolder}/OsmoDoc.API/OsmoDoc.API.csproj" | ||
| ], | ||
| "problemMatcher": "$msCompile" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,5 +1,5 @@ | ||||||||||
| # Contributing to DocumentService | ||||||||||
| Welcome to the document-service project! We appreciate your interest in contributing to the project and making it even better. As a contributor, | ||||||||||
| # Contributing to OsmoDoc | ||||||||||
| Welcome to the osmodoc project! We appreciate your interest in contributing to the project and making it even better. As a contributor, | ||||||||||
| please follow the guidelines outlined below: | ||||||||||
|
|
||||||||||
| ## Table of contents | ||||||||||
|
|
@@ -13,8 +13,8 @@ please follow the guidelines outlined below: | |||||||||
| ## Got a question or problem? | ||||||||||
|
|
||||||||||
| **If you have questions or encounter problems, please refrain from opening issues for general support questions**. GitHub issues are primarily for bug | ||||||||||
| reports and feature requests. For general questions and support, consider using [Stack Overflow](https://stackoverflow.com/questions/tagged/document-service) | ||||||||||
| and tag your questions with the `document-service` tag. Here's why Stack Overflow is a preferred platform: | ||||||||||
| reports and feature requests. For general questions and support, consider using [Stack Overflow](https://stackoverflow.com/questions/tagged/osmodoc) | ||||||||||
| and tag your questions with the `osmodoc` tag. Here's why Stack Overflow is a preferred platform: | ||||||||||
|
|
||||||||||
| - Questions and answers are publicly available, helping others. | ||||||||||
| - The voting system on Stack Overflow highlights the best answers. | ||||||||||
|
|
@@ -23,8 +23,8 @@ To save time for both you and us, we will close issues related to general suppor | |||||||||
|
|
||||||||||
| ## Found any issues and bugs | ||||||||||
|
|
||||||||||
| If you find a bug in the source code, you can help us by [submitting an issue](https://github.com/OsmosysSoftware/document-service/issues/new) | ||||||||||
| to our GitHub Repository. Even better, you can submit a [pull request](https://github.com/OsmosysSoftware/document-service/pulls) with a fix. | ||||||||||
| If you find a bug in the source code, you can help us by [submitting an issue](https://github.com/OsmosysSoftware/osmodoc/issues/new) | ||||||||||
| to our GitHub Repository. Even better, you can submit a [pull request](https://github.com/OsmosysSoftware/osmodoc/pulls) with a fix. | ||||||||||
|
Comment on lines
+26
to
+27
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor style/capitalization nits. Lowercase “repository”; tighten wording. -If you find a bug in the source code, you can help us by [submitting an issue](https://github.com/OsmosysSoftware/osmodoc/issues/new)
-to our GitHub Repository. Even better, you can submit a [pull request](https://github.com/OsmosysSoftware/osmodoc/pulls) with a fix.
+If you find a bug, please [submit an issue](https://github.com/OsmosysSoftware/osmodoc/issues/new)
+to our GitHub repository. Even better, submit a [pull request](https://github.com/OsmosysSoftware/osmodoc/pulls) with a fix.📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||
|
|
||||||||||
| ## Submission guidelines | ||||||||||
|
|
||||||||||
|
|
@@ -34,19 +34,19 @@ Before you submit an issue, please check the issue tracker to see if a similar i | |||||||||
|
|
||||||||||
| For us to address and fix a bug, we need to reproduce it. Thus when submitting a bug report, we will ask for a minimal reproduction scenario using a repository or [Gist](https://gist.github.com/). Providing a live, reproducible scenario helps us understand the issue better. Information to include: | ||||||||||
|
|
||||||||||
| - The version of the document-service you are using. | ||||||||||
| - The version of the osmodoc you are using. | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Grammar: drop article and fix casing. -- The version of the osmodoc you are using.
+- The version of OsmoDoc you are using.
🤖 Prompt for AI Agents |
||||||||||
| - Any third-party libraries and their versions. | ||||||||||
| - A use-case that demonstrates the issue. | ||||||||||
|
|
||||||||||
| Without a minimal reproduction, we may need to close the issue due to insufficient information. | ||||||||||
|
|
||||||||||
| You can file new issues using our [new issue form](https://github.com/OsmosysSoftware/document-service/issues/new). | ||||||||||
| You can file new issues using our [new issue form](https://github.com/OsmosysSoftware/osmodoc/issues/new). | ||||||||||
|
|
||||||||||
| ### Submitting a pull request (PR) | ||||||||||
|
|
||||||||||
| Before submitting a Pull Request (PR), please follow these guidelines: | ||||||||||
|
|
||||||||||
| 1. Search GitHub [pull requests](https://github.com/OsmosysSoftware/document-service/pulls) to ensure there is no open or closed PR | ||||||||||
| 1. Search GitHub [pull requests](https://github.com/OsmosysSoftware/osmodoc/pulls) to ensure there is no open or closed PR | ||||||||||
| related to your submission. | ||||||||||
| 2. Fork this repository. | ||||||||||
| 3. Make your changes in a new Git branch. | ||||||||||
|
|
@@ -63,12 +63,12 @@ Before submitting a Pull Request (PR), please follow these guidelines: | |||||||||
| ```shell | ||||||||||
| git push origin my-fix-branch | ||||||||||
| ``` | ||||||||||
| 7. Send a pull request to the `document-service:main`. | ||||||||||
| 7. Send a pull request to the `osmodoc:main`. | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix garbled bullets and minor wording; current HTML/� chars won’t render correctly. Replace with plain Markdown bullets and clarify target. -7. Send a pull request to the `osmodoc:main`.
+7. Open a pull request against `osmodoc:main`.-- <strong style="color:black">�</strong> **If we suggest changes, then:**
- - � Make the required updates.
- - � Ensure that your changes do not break existing functionality or introduce new issues.
- - � Rebase your branch and force push to your GitHub repository. This will update your Pull Request.
+- **If we suggest changes, then:**
+ - Make the required updates.
+ - Ensure your changes do not break existing functionality or introduce issues.
+ - Rebase your branch and force-push to update your pull request.Also applies to: 68-71 🤖 Prompt for AI Agents |
||||||||||
|
|
||||||||||
| - <strong style="color:black">�</strong> **If we suggest changes, then:** | ||||||||||
| - � Make the required updates. | ||||||||||
| - � Ensure that your changes do not break existing functionality or introduce new issues. | ||||||||||
| - � Rebase your branch and force push to your GitHub repository. This will update your Pull Request. | ||||||||||
| - <strong style="color:black">�</strong> **If we suggest changes, then:** | ||||||||||
| - � Make the required updates. | ||||||||||
| - � Ensure that your changes do not break existing functionality or introduce new issues. | ||||||||||
| - � Rebase your branch and force push to your GitHub repository. This will update your Pull Request. | ||||||||||
|
|
||||||||||
| That's it! Thank you for your contribution! | ||||||||||
|
|
||||||||||
|
|
@@ -90,7 +90,7 @@ To ensure consistency throughout the source code, follow these rules as you work | |||||||||
| ## Commit message guidelines | ||||||||||
|
|
||||||||||
| In this project, we have specific rules for formatting our Git commit messages. These guidelines result in more readable messages that are easy | ||||||||||
| to follow when reviewing the project's history. Additionally, we use these commit messages to **generate the document-service change log**. | ||||||||||
| to follow when reviewing the project's history. Additionally, we use these commit messages to **generate the osmodoc change log**. | ||||||||||
|
|
||||||||||
| ### Commit message format | ||||||||||
|
|
||||||||||
|
|
@@ -110,7 +110,7 @@ on GitHub as well as in various git tools. | |||||||||
|
|
||||||||||
| Footer should contain a [closing reference to an issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) if any. | ||||||||||
|
|
||||||||||
| Samples: (even more [samples](https://github.com/OsmosysSoftware/document-service/commits/main)) | ||||||||||
| Samples: (even more [samples](https://github.com/OsmosysSoftware/osmodoc/commits/main)) | ||||||||||
| `docs: update change log to beta.5` | ||||||||||
| `fix: need to depend on latest rxjs and zone.js` | ||||||||||
|
|
||||||||||
|
|
||||||||||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Invalid OpenAI model name.
The model name "gpt-5-mini" does not exist in OpenAI's API. As of my knowledge cutoff (March 2025), valid models include gpt-4o, gpt-4o-mini, gpt-4-turbo, gpt-3.5-turbo, etc. This will cause runtime errors when the PPTX generation service attempts to call the OpenAI API.
Please verify the correct model name by searching for the latest OpenAI models:
Apply this diff to use a valid model name:
🌐 Web query:
💡 Result:
Here are the main OpenAI chat-completion models available (2025) — concise list of current public models and families:
Sources:
[1] Axios / news on GPT-5 (Oct 2025).
[2] OpenAI / GPT-4.1 announcement and coverage.
[3] Reuters / reporting on GPT-4.1 (Apr 2025).
[4] OpenAI release pages for o‑series (o3, o4‑mini) and GPT-4 family.
[5] OpenAI blog: GPT‑4o mini announcement.
[6] OpenAI/API model list and community references showing chat-completions endpoint model names.
If you want, I can fetch and show the exact API model IDs and links to the official OpenAI docs for each item.
Invalid OpenAI model name.
“gpt-5-mini” isn’t a valid model. As of 2025, use “gpt-5” (or a supported mini variant such as “gpt-4.1-mini”).
📝 Committable suggestion
🤖 Prompt for AI Agents