mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-25 00:36:55 +02:00
Merge branch 'geekan:main' into patch-3
This commit is contained in:
commit
0e37450042
1 changed files with 0 additions and 3 deletions
|
|
@ -114,9 +114,6 @@ class OpenAILLM(BaseLLM):
|
|||
elif hasattr(chunk.choices[0], "usage"):
|
||||
# The usage of some services is an attribute of chunk.choices[0], such as Moonshot
|
||||
usage = CompletionUsage(**chunk.choices[0].usage)
|
||||
elif "openrouter.ai" in self.config.base_url and chunk_has_usage:
|
||||
# due to it get token cost from api
|
||||
usage = chunk.usage
|
||||
has_finished = True
|
||||
|
||||
log_llm_stream("\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue