Skip to content

Commit

Permalink
Merge branch 'main' into add-ts-testing-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnolte authored Mar 3, 2024
2 parents f50a77d + 21d77d1 commit e2ac75b
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 15 deletions.
69 changes: 60 additions & 9 deletions JavaScript/novel-ai-text-editor/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion JavaScript/novel-ai-text-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@types/node": "20.11.22",
"@types/react": "18.2.60",
"@types/react-dom": "18.2.19",
"ai": "^2.2.11",
"ai": "^3.0.0",
"autoprefixer": "10.4.17",
"eslint": "8.57.0",
"eslint-config-next": "14.1.0",
Expand Down
6 changes: 3 additions & 3 deletions Python/openai-tracing/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ def main():
"ai.response",
span_id=span_id,
properties=dict(
# OpenAI v1 returns pydantic models, which have a model_dump_json
# method for converting to JSON.
response=completion.model_dump_json(),
# OpenAI v1 returns pydantic models, which have a model_dump
# method for converting to a dictionary.
response=completion.model_dump(),
latency=(time.time() - start_time) * 1000,
),
)
Expand Down
4 changes: 2 additions & 2 deletions Python/prompt-sdk-headless/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ def main():
"ai.response",
prompt_tracking=prompt.track(),
properties=dict(
# OpenAI v1 returns pydantic models, which have a model_dump_json
# OpenAI v1 returns pydantic models, which have a model_dump
# method for converting to JSON.
response=response.model_dump_json(),
response=response.model_dump(),
),
)

Expand Down

0 comments on commit e2ac75b

Please sign in to comment.