Refactor: completion -> completions (#14584)

### What problem does this PR solve?

Keep only /completions, deprecated /completion

### Type of change

- [x] Refactoring
This commit is contained in:
Wang Qi authored and GitHub committed 2026-05-06 17:19:22 +08:00
1 parent a190a6d67f
commit f32034e83e
10 files changed
+24 -22

No files matched your search

+1 -1
View File
@@ -116,7 +116,7 @@ class Session(Base):
"openai-compatible": False,
}
json_data.update(kwargs)
res = self.post("/agents/chat/completion", json_data, stream=stream)
res = self.post("/agents/chat/completions", json_data, stream=stream)
return res
def update(self, update_message):