eheguy commited on
Commit
1a070c8
·
1 Parent(s): 37c0011

Switch model to openai/gpt-oss-120b on Groq

Browse files
Files changed (2) hide show
  1. README.md +7 -7
  2. humanizer.py +1 -1
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  title: Humanizer API
3
- emoji:
4
  colorFrom: indigo
5
  colorTo: purple
6
  sdk: docker
@@ -114,7 +114,7 @@ sequenceDiagram
114
  DB-->>BE: Return plan & usage count
115
  BE->>BE: Verify usage count < plan limit
116
  end
117
- rect rgb(240, 248, 255)
118
  Note over BE,LLM: Input Sanitization & Pipeline
119
  BE->>BE: Sanitize text (base64 & regex checks)
120
  BE->>LLM: Two-Pass humanization prompt
@@ -130,11 +130,11 @@ The logical execution flow of a single humanization request inside the FastAPI c
130
 
131
  ```mermaid
132
  graph TD
133
- classDef client fill:#e1f5fe,stroke:#01579b,stroke-width:2px;
134
- classDef api fill:#efebe9,stroke:#3e2723,stroke-width:2px;
135
- classDef guard fill:#ffe0b2,stroke:#e65100,stroke-width:2px;
136
- classDef pipeline fill:#e8f5e9,stroke:#1b5e20,stroke-width:2px;
137
- classDef database fill:#e0f2f1,stroke:#004d40,stroke-width:2px;
138
 
139
  subgraph UserAction ["1. Trigger Cycle (Client)"]
140
  Click[User Clicks Humanize]:::client
 
1
  ---
2
  title: Humanizer API
3
+ emoji: "📝"
4
  colorFrom: indigo
5
  colorTo: purple
6
  sdk: docker
 
114
  DB-->>BE: Return plan & usage count
115
  BE->>BE: Verify usage count < plan limit
116
  end
117
+ rect rgb(238, 238, 238)
118
  Note over BE,LLM: Input Sanitization & Pipeline
119
  BE->>BE: Sanitize text (base64 & regex checks)
120
  BE->>LLM: Two-Pass humanization prompt
 
130
 
131
  ```mermaid
132
  graph TD
133
+ classDef client fill:#ffffff,stroke:#000000,stroke-width:2px;
134
+ classDef api fill:#f5f5f5,stroke:#000000,stroke-width:2px;
135
+ classDef guard fill:#eeeeee,stroke:#000000,stroke-width:2px;
136
+ classDef pipeline fill:#e0e0e0,stroke:#000000,stroke-width:2px;
137
+ classDef database fill:#cccccc,stroke:#000000,stroke-width:2px;
138
 
139
  subgraph UserAction ["1. Trigger Cycle (Client)"]
140
  Click[User Clicks Humanize]:::client
humanizer.py CHANGED
@@ -206,7 +206,7 @@ Tone guidance: {readability_mod}
206
  Context: {purpose_mod}"""
207
 
208
  response = client.chat.completions.create(
209
- model="llama-3.3-70b-versatile",
210
  messages=[
211
  {"role": "system", "content": system_prompt},
212
  {"role": "user", "content": input_text}
 
206
  Context: {purpose_mod}"""
207
 
208
  response = client.chat.completions.create(
209
+ model="openai/gpt-oss-120b",
210
  messages=[
211
  {"role": "system", "content": system_prompt},
212
  {"role": "user", "content": input_text}