Skip to content

Commit

Permalink
adding database entry
Browse files Browse the repository at this point in the history
  • Loading branch information
tcollins2011 committed Oct 29, 2024
1 parent 02c631a commit db9349b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/config/sample/galaxy.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -2886,7 +2886,7 @@ galaxy:
#openai_api_key: null

# Model for OpenAI (https://openai.com/) to enable the wizard
#openai_model: GPT-4o
#openai_model: gpt-4o

# Allow the display of tool recommendations in workflow editor and
# after tool execution. If it is enabled and set to true, please
Expand Down
12 changes: 12 additions & 0 deletions lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11535,6 +11535,18 @@ def __repr__(self):
f"id={self.id!r}, last_scheduled_time={self.last_scheduled_time!r})"
)

class ChatGXYResponses(Base):
"""
Stores the tool error responses from chatgxy
"""

__tablename__ = "chatgxy_responses"

id: Mapped[int] = mapped_column(primary_key=True)
job_id: Mapped[Optional[int]] = mapped_column(ForeignKey("job.id"), index=True)
response: Mapped[str] = mapped_column(TEXT, nullable=True)
feedback: Mapped[int] = mapped_column(Integer, nullable=True)


# The following models (HDA, LDDA) are mapped imperatively (for details see discussion in PR #12064)
# TLDR: there are issues ('metadata' property, Galaxy object wrapping) that need to be addressed separately
Expand Down

0 comments on commit db9349b

Please sign in to comment.