goose-py 0.3.7__tar.gz → 0.3.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: goose-py
3
- Version: 0.3.7
3
+ Version: 0.3.8
4
4
  Summary: A tool for AI workflows based on human-computer collaboration and structured output.
5
5
  Home-page: https://github.com/chelle-ai/goose
6
6
  Keywords: ai,yaml,configuration,llm
@@ -150,12 +150,20 @@ class AgentResponse[R: BaseModel](BaseModel):
150
150
  @computed_field
151
151
  @property
152
152
  def input_cost(self) -> float:
153
- return self.INPUT_CENTS_PER_MILLION_TOKENS[self.model] * self.input_tokens
153
+ return (
154
+ self.INPUT_CENTS_PER_MILLION_TOKENS[self.model]
155
+ * self.input_tokens
156
+ / 1_000_000
157
+ )
154
158
 
155
159
  @computed_field
156
160
  @property
157
161
  def output_cost(self) -> float:
158
- return self.OUTPUT_CENTS_PER_MILLION_TOKENS[self.model] * self.output_tokens
162
+ return (
163
+ self.OUTPUT_CENTS_PER_MILLION_TOKENS[self.model]
164
+ * self.output_tokens
165
+ / 1_000_000
166
+ )
159
167
 
160
168
  @computed_field
161
169
  @property
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "goose-py"
3
- version = "0.3.7"
3
+ version = "0.3.8"
4
4
  description = "A tool for AI workflows based on human-computer collaboration and structured output."
5
5
  authors = [
6
6
  "Nash Taylor <nash@chelle.ai>",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes