Merge pull request #4 from rowboatlabs/dev

Dev --> Main
This commit is contained in:
Akhilesh Sudhakar 2025-01-31 16:42:30 +05:30 committed by GitHub
commit 1267e481ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View file

@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Copyright [2024] [RowBoat Labs]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View file

@ -6,6 +6,7 @@ import json
from lib import AgentContext, PromptContext, ToolContext, ChatContext
openai_client = OpenAI()
MODEL_NAME = "o1" # OpenAI model name
class UserMessage(BaseModel):
role: Literal["user"]
@ -503,7 +504,7 @@ User: {last_message.content}
print(json.dumps(updated_msgs, indent=2))
response = openai_client.chat.completions.create(
model="gpt-4o",
model=MODEL_NAME,
messages=updated_msgs,
response_format={"type": "json_object"}
)

View file

@ -190,7 +190,7 @@ RowBoat is available under the [Apache 2.0 License](https://github.com/rowboatla
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Copyright [2024] [RowBoat Labs]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.